Sapient Global Markets Interview Questions – Set 1
I applied for Junior Associate position at Sapient Bangalore location. Recruiter contacted me via LinkedIn. There were two technical rounds (Skype Interviews) and one managerial round. Over all experience was really good and I enjoyed entire interview process. Here are the questions asked to me in my first technical round. Write a program to swap a String […]
Producer Consumer Design Pattern
Producer Consumer Problem is a classical concurrency problem. In fact it is one of the concurrency design pattern. It is also known as the bounded-buffer problem. The problem describes two processes, the producer and the consumer, who share a common, fixed-size buffer used as a queue. The producer's job is to generate data and put it into […]
Producer Consumer Design Pattern using BlockingQueue
Producer Consumer Problem is a classical concurrency problem. In fact it is one of the concurrency design pattern. This article is continuation of my post Producer Consumer Design Pattern in which I have explained basic idea, real life example, uses and benefits of Producer Consumer Design Pattern. Producer Consumer Design Patter can be implemented using following two […]
Producer Consumer Design Pattern using wait() and notify()
Producer Consumer Problem is a classical concurrency problem. In fact it is one of the concurrency design pattern. This article is continuation of my post Producer Consumer Design Pattern in which I have explained basic idea, real life example, uses and benefits of Producer Consumer Design Pattern. Producer Consumer Design Patter can either be implemented using following […]