SShortSingh.
Back to feed

How BlockingQueue and Channels Work, From Runtime Down to the CPU

0
·1 views

This installment of a concurrency programming series explains how blocking queues and channels hand messages between threads. It walks through the layers involved, from Java source and JDK classes like ArrayBlockingQueue and AQS, down through the JVM, OS thread parking, and x86-64 hardware. It describes how put and take operations rely on locks, condition waiting, and wakeup signals to coordinate producers and consumers. The article also explains how atomicity, visibility, and ordering guarantees are supported by atomic instructions, cache coherence, and acquire/release memory semantics. Go channels are presented alongside the Java model as a comparable handoff mechanism.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Designing bookmarks that users can find again later

A save button records a link but often fails to help people locate it weeks afterward, which is the real challenge for personal knowledge tools. The article proposes a record that separates the resource's URL from user-supplied context such as the purpose of saving it, its intent, and keywords. It recommends keeping optional fields minimal, with a single prompt asking what the item will be used for, so capture does not become tedious. Showing the user's note alongside titles helps distinguish similar items, and automatic labels should be treated as editable suggestions rather than replacements. The author suggests testing by having people save resources and later retrieve them without reminders, measuring whether they can confidently reuse them.

0
ProgrammingDEV Community ·

Apple Unveils HomeView, a 7-inch Siri-Powered Smart Home Display

Apple has announced HomeView, a 7-inch smart home display powered by Siri AI, unveiled on October 13, 2026. The device merges smart home controls, personalized experiences, communication tools, and AI assistance into a single interface. It supports voice and touch input, control of compatible accessories, camera feed monitoring, and apps such as FaceTime, messages, calendars, and reminders. HomeView can recognize up to six household members and tailor home screens for each, and it can be placed on a tabletop or mounted on a wall.

0
ProgrammingDEV Community ·

KeptTools Offers Free Developer and Image Tools That Run Entirely in the Browser

A developer built KeptTools, a set of free online utilities that process content locally rather than uploading it. The collection includes JSON, JWT, SQL, and encoding tools for developers, plus image tools for conversion, cropping, compression, and background changes. Work is performed by JavaScript on the page, and no account is required. Closing the tab ends the session without storing files for processing on the company's servers. Some features download a small AI model on first use, but the user's photos are not sent to the server.

0
ProgrammingDEV Community ·

BidReady AI Aims to Simplify Government Tender Review for Small Businesses

BidReady AI is an AI-assisted tool built to help small businesses and contractors review government tender documents before deciding whether to bid. The tool extracts eligibility conditions, financial criteria, registrations, and certificate requirements while keeping each one linked to its source page for verification. It also compares those requirements against a company's available evidence, runs deterministic financial checks, and generates a structured report flagging possible gaps. The project's creators say it is meant to speed up initial review rather than replace professional judgment or guarantee eligibility. The open-source tool is built with React, TypeScript, and FastAPI and is being presented as a submission for a Hacktoberfest AI challenge.