orkhan-huseyn / blocking-queue

Implementation of a BlockingQueue in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blocking Queue Implementation in Java

A blocking queue is defined as a queue which blocks the caller of the enqueue method if there's no more capacity to add the new item being enqueued. Similarly, the queue blocks the dequeue caller if there are no items in the queue. Also, the queue notifies a blocked enqueuing thread when space becomes available and a blocked dequeuing thread when an item becomes available in the queue.

This source code is from Java Multithreading for Senior Engineering Interviews course on Educative.

About

Implementation of a BlockingQueue in Java


Languages

Language:Java 98.8%Language:HTML 1.2%