Software Developer New Grad Interview Questions

6,139 software developer new grad interview questions shared by candidates

Concurrency Problem:- You are given a bucket of capacity N in which tokens are added at the rate of 1 per second. If overflow occurs, the tokens are dropped from the bucket. There are several threads, that need 1 token to complete their execution. So, whenever they are invoked, they capture one token from the bucket (which is removed) and continue their execution. Implement the problem, and synchronize access to the shared bucket.
avatar

Software Development Engineer (New Grad)

Interviewed at Confluent

3.6
Dec 1, 2022

Concurrency Problem:- You are given a bucket of capacity N in which tokens are added at the rate of 1 per second. If overflow occurs, the tokens are dropped from the bucket. There are several threads, that need 1 token to complete their execution. So, whenever they are invoked, they capture one token from the bucket (which is removed) and continue their execution. Implement the problem, and synchronize access to the shared bucket.

Viewing 3481 - 3490 interview questions

Glassdoor has 6,139 interview questions and reports from Software developer new grad interviews. Prepare for your interview. Get hired. Love your job.