# multithreading

Published articles for multithreading.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Concurrency vs Multithreading: What's the Difference?

DevFeed: [Concurrency vs Multithreading: What's the Difference?](<https://devfeed.tech/articles/concurrency-vs-multithreading-what-s-the-difference-87506.md>)

Original publisher: [Read original article](<https://talent500.com/blog/concurrency-vs-multithreading/>)

Author: Kashif Khan

Published: 2026-10-15T02:42:26Z

Content type: tutorial

Language: en

Sources: [Talent500](<https://devfeed.tech/sources/backend-archives-talent500-blog.md>)

Topics: [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [Declarative programming](<https://devfeed.tech/topics/declarative-programming.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [asynchronous-programming](<https://devfeed.tech/tags/asynchronous-programming.md>), [backend](<https://devfeed.tech/tags/backend.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-vs-multithreading](<https://devfeed.tech/tags/concurrency-vs-multithreading.md>), [deadlocks](<https://devfeed.tech/tags/deadlocks.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [parallelism](<https://devfeed.tech/tags/parallelism.md>), [python-threading](<https://devfeed.tech/tags/python-threading.md>), [race-conditions](<https://devfeed.tech/tags/race-conditions.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [thread-pools](<https://devfeed.tech/tags/thread-pools.md>), [thread-safety](<https://devfeed.tech/tags/thread-safety.md>)

### AI overview

This tutorial explains concurrency as the broader way to manage tasks that make progress during overlapping periods, while multithreading is one implementation technique. It contrasts threads with asynchronous programming and parallel execution, provides Python examples, and discusses I/O-bound and CPU-bound workloads, synchronization, thread pools, race conditions, and deadlocks.

### Source excerpt

Understand Concurrency vs Multithreading, including how they differ in task execution, resource sharing, performance, and parallelism. Explore key concepts, practical examples, advantages, limitations, and use cases to determine which approach best suits different software development needs. The post Concurrency vs Multithreading: What's the Difference? appeared first on Talent500 blog.

## Cursor writes all my code now

DevFeed: [Cursor writes all my code now](<https://devfeed.tech/articles/cursor-writes-all-my-code-now-66642.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4231345/cursor-writes-all-my-code-now.html>)

Author: Nick Hodges

Published: 2026-10-07T09:00:00Z

Content type: opinion

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [native-client](<https://devfeed.tech/topics/native-client.md>), [Parallel reasoning](<https://devfeed.tech/topics/parallel-reasoning.md>)

Tags: [ai-coding-agents](<https://devfeed.tech/tags/ai-coding-agents.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [artificial-intelligence-careers-developer-generative-ai-roles-software-development](<https://devfeed.tech/tags/artificial-intelligence-careers-developer-generative-ai-roles-software-development.md>), [careers](<https://devfeed.tech/tags/careers.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [codex](<https://devfeed.tech/tags/codex.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [developer](<https://devfeed.tech/tags/developer.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [race-conditions](<https://devfeed.tech/tags/race-conditions.md>), [roles](<https://devfeed.tech/tags/roles.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [writing-code](<https://devfeed.tech/tags/writing-code.md>)

### AI overview

The author describes using Cursor in a pull request review workflow to identify and fix more than 20 potential race condition scenarios in code. The experience prompts a broader opinion that AI coding agents are changing software development, reducing manual coding and potentially enabling native apps across devices.

### Source excerpt

I was at the gym yesterday, talking with a relatively new CrossFitter named John, and naturally he asked me what I do for a living. I said I write software all day. But it hit me--I don't actually write software anymore. I told him that, nowadays, Cursor writes all my code--I just tell Cursor what to do. I've written about how code isn't important anymore and that we won't be writing code much longer, but somehow that truth finally hit me. And of course, when a truth hits me, someone else has already spoken that truth. Ruby creator David Heinemeier Hansson just a few weeks ago told us to "put down our pencils" at Rails World 2026. The simple fact of the matter is that Cursor, Claude Code, Codex, etc., are better coders than we are. This dawned on me over the past week at my day job where Cursor found a startlingly large number of threading issues in some code that I had written. I'm not ashamed--except for a handful of savants, we all have a very hard time reasoning clearly about complex multithreading. We just don't have enough RAM in our heads to hold all of the possibilities in our brains. Leave it to Cursor But you know who does? Cursor. We use Cursor at work, and we have it wired into our pull request process to examine the code we are reviewing and see if it can find any problems. And boy, does Cursor find problems. In that code I wrote, Cursor found more than 20 different scenarios where race conditions could occur. And then, Cursor fixed them. In minutes. Although I felt a little dumb as a result, I was pleased that our agent found these issues before our customers did. I think we all know that multithreading bugs are all but impossible to track down and fix when a customer reports them. Cursor? It found them and fixed them no problem. It was humbling, to say the least. This has happened before. If you have seen or read Hidden Figures, you know how important a group of Black women were to the early American space program. They were called "computers" because th

## Faster software linking with mold

DevFeed: [Faster software linking with mold](<https://devfeed.tech/articles/faster-software-linking-with-mold-65378.md>)

Original publisher: [Read original article](<https://lemire.me/blog/2026/10/06/linking-node-js-with-mold/>)

Author: Daniel Lemire

Published: 2026-10-06T08:00:20Z

Content type: comparison

Language: en

Sources: [Daniel Lemire](<https://devfeed.tech/sources/daniel-lemire.md>)

Topics: [linker](<https://devfeed.tech/topics/linker.md>)

Tags: [gcc](<https://devfeed.tech/tags/gcc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [node-js](<https://devfeed.tech/tags/node-js.md>)

### AI overview

A Node.js linking benchmark on a Linux server reports that multithreaded mold is about 24 times faster than GNU ld and 14 times faster than gold. Results use median timings from six runs per linker. The article explains how to enable mold through compiler flags or a build wrapper and why faster linking benefits developers who rebuild frequently.

### Source excerpt

When you build a program, the compiler turns each source file into an object file. Then a linker stitches all the object files and libraries into one executable. On Linux, the default linker is usually GNU ld (also called bfd). The GNU binutils also ship gold, an alternative linker that was designed to be faster. ... Continue reading Faster software linking with mold

## Building a GPU in 24 hours and winning HackMIT

DevFeed: [Building a GPU in 24 hours and winning HackMIT](<https://devfeed.tech/articles/building-a-gpu-in-24-hours-and-winning-hackmit-61184.md>)

Original publisher: [Read original article](<https://blog.adafruit.com/2026/09/28/building-a-gpu-in-24-hours-and-winning-hackmit/>)

Author: Anne Barela

Published: 2026-09-28T15:16:18Z

Content type: article

Language: en

Sources: [Adafruit Industries](<https://devfeed.tech/sources/adafruit-industries-makers-hackers-artists-designers-and-engineers.md>)

Topics: [kernels](<https://devfeed.tech/topics/kernels.md>), [vectorization techniques](<https://devfeed.tech/topics/vectorization-techniques.md>), [Multi-GPU](<https://devfeed.tech/topics/multi-gpu.md>)

Tags: [contest](<https://devfeed.tech/tags/contest.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [mit](<https://devfeed.tech/tags/mit.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [rtl](<https://devfeed.tech/tags/rtl.md>), [simd](<https://devfeed.tech/tags/simd.md>)

### AI overview

A four-person team built an FPGA-based GPU in 24 hours at HackMIT and placed second. The design combined a pipelined RV32 core, 16-lane SIMD, hardware multithreading, and custom kernels. To address serialized-memory stalls, the team added an asynchronous load-store unit. Demos included Mandelbrot, a physics simulation, an LLM, and DOOM.

### Source excerpt

A team of four built a working GPU during the 24 hours of HackMIT and took second place with it. The write-up on armaangomes.com covers the architecture and the all-night scramble to get it running on an FPGA. The plan had four stages: start with a pipelined RV32 core, vectorize it into a 16-lane SIMD [...]

## Releasing Execution Contexts

DevFeed: [Releasing Execution Contexts](<https://devfeed.tech/articles/releasing-execution-contexts-22337.md>)

Original publisher: [Read original article](<https://crystal-lang.org/2026/07/12/releasing-execution-contexts/>)

Author: Julien Portalier

Published: 2026-07-12T00:00:00Z

Content type: release

Language: en

Sources: [Crystal](<https://devfeed.tech/sources/crystal.md>)

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [multithreading](<https://devfeed.tech/topics/multithreading.md>), [Crystal](<https://devfeed.tech/topics/crystal.md>), [execution](<https://devfeed.tech/topics/execution.md>)

Tags: [concurrent](<https://devfeed.tech/tags/concurrent.md>), [context](<https://devfeed.tech/tags/context.md>), [crystal](<https://devfeed.tech/tags/crystal.md>), [fiber](<https://devfeed.tech/tags/fiber.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [parallel](<https://devfeed.tech/tags/parallel.md>)

### AI overview

Execution Contexts let Crystal applications choose how fibers are scheduled across threads, addressing needs such as thread ownership, concurrent fiber groups, and scaling across CPU cores. The default context runs fibers concurrently on one thread (parallelism 1), preserving compatibility; it can be resized to increase parallelism. Applications can also start additional contexts and choose single-threaded, fixed, or adjustable thread limits, with parallelism configurable at runtime. Fibers remain tied to their context. The excerpt defines Concurrent contexts as concurrent but not parallel within that context, while Parallel contexts run fibers concurrently and in parallel; its explanation of the Parallel limit and any other context types is truncated.

### Source excerpt

Two and a half years ago, with the invaluable support from 84codes, we re-examined the multithreading model inherited from Crystal 0.28 (preview MT).

## Swift at scale: building the TelemetryDeck analytics service

DevFeed: [Swift at scale: building the TelemetryDeck analytics service](<https://devfeed.tech/articles/swift-at-scale-building-the-telemetrydeck-analytics-service-91309.md>)

Original publisher: [Read original article](<https://www.swift.org/blog/building-privacy-first-analytics-with-swift/>)

Author: Daniel Jilg

Published: 2026-03-06T11:00:00Z

Content type: article

Language: en

Sources: [Swift.org](<https://devfeed.tech/sources/swift-org.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Vapor](<https://devfeed.tech/topics/swift-vapor.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Cloud Architecture](<https://devfeed.tech/topics/cloud-architecture.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [swift-package](<https://devfeed.tech/topics/swift-package.md>), [SwiftUI](<https://devfeed.tech/topics/swiftui.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [apache](<https://devfeed.tech/tags/apache.md>), [apis](<https://devfeed.tech/tags/apis.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [backend](<https://devfeed.tech/tags/backend.md>), [compile](<https://devfeed.tech/tags/compile.md>), [containers](<https://devfeed.tech/tags/containers.md>), [data](<https://devfeed.tech/tags/data.md>), [druid](<https://devfeed.tech/tags/druid.md>), [errors](<https://devfeed.tech/tags/errors.md>), [framework](<https://devfeed.tech/tags/framework.md>), [hobby](<https://devfeed.tech/tags/hobby.md>), [lean](<https://devfeed.tech/tags/lean.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [parallelism](<https://devfeed.tech/tags/parallelism.md>), [performant](<https://devfeed.tech/tags/performant.md>), [scale](<https://devfeed.tech/tags/scale.md>), [service](<https://devfeed.tech/tags/service.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

TelemetryDeck reports serving over 16 million people monthly with a Swift and Vapor backend running in Kubernetes, using Postgres for metadata and Apache Druid for analytics. The authors credit Swift's compiled type checking, multithreading, and Codable with performance, safer JSON handling, and faster iteration, while noting that service bottlenecks often come from databases, storage, and traffic. They share practical lessons: keep version-specific DTOs near controllers, version API paths from the start, use Vapor's packages, queues, migrations, middleware, and Fluent, set cache TTLs, and monitor errors and performance. Development can use Xcode and local PostgreSQL or SQLite without containers. The account reflects the team's experience and does not provide independent benchmarks.

### Source excerpt

TelemetryDeck is an app analytics service specifically for developers, designed to manage usage analytics that are anonymized, privacy-focused, and really easy to use. TelemetryDeck is managing the data of over 16 million people every month, helping thousands of app publishers improve their products, and we're doing it all with a Swift-based infrastructure. The decision to go with Swift brought a lot of unexpected advantages for us. We come from a world of iOS in the frontend, Python, Node, or Ruby in the backend for server-based applications. Compared to these languages and frameworks, Swift is just as easy to use, and its compiled nature allows us to catch a lot of possible errors at compile time instead of runtime, making it ideal for a hardened, high-performance web service. Let me share our journey and history with you. Adopting Swift for backend services TelemetryDeck is built on Vapor, a web framework written in Swift, for building scalable APIs and services. Similar to other Vapor-based projects like Things, TelemetryDeck runs on containers hosted in Kubernetes. Our metadata lives in Postgres, and our analytics data is stored in Apache Druid. We use Swift-native connectors to access APIs for these services. Some of those come from the Swift community, others we've written ourselves and are giving back to the open source ecosystem. In the very beginning, when TelemetryDeck was just a little exploratory hobby project, we wanted to go with Swift on the server simply because we love Swift, and we're pretty decent at it. Vapor was new, and we figured, let's try this out and learn a new way to apply and combine our skills. In the end, this decision turned out to be exactly the right one and resulted in a lean architecture that is highly performant, stable, and allows us to develop and iterate quickly. Swift's performance characteristics are remarkable, especially in multithreading. Python's Global Interpreter Lock has long constrained true parallelism, though rece

## Swift at scale: building the TelemetryDeck analytics service

DevFeed: [Swift at scale: building the TelemetryDeck analytics service](<https://devfeed.tech/articles/swift-at-scale-building-the-telemetrydeck-analytics-service-2928.md>)

Original publisher: [Read original article](<https://swift.org/blog/building-privacy-first-analytics-with-swift/>)

Author: Daniel Jilg

Published: 2026-03-06T11:00:00Z

Content type: article

Language: en

Sources: [Swift.org](<https://devfeed.tech/sources/swift-org.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Vapor](<https://devfeed.tech/topics/swift-vapor.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Cloud Architecture](<https://devfeed.tech/topics/cloud-architecture.md>), [container](<https://devfeed.tech/topics/container.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [apache](<https://devfeed.tech/tags/apache.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [backend](<https://devfeed.tech/tags/backend.md>), [containers](<https://devfeed.tech/tags/containers.md>), [druid](<https://devfeed.tech/tags/druid.md>), [framework](<https://devfeed.tech/tags/framework.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [ios](<https://devfeed.tech/tags/ios.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [parallelism](<https://devfeed.tech/tags/parallelism.md>), [performance](<https://devfeed.tech/tags/performance.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [scale](<https://devfeed.tech/tags/scale.md>), [service](<https://devfeed.tech/tags/service.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

TelemetryDeck runs its analytics service on Swift and Vapor in Kubernetes, with Postgres for metadata and Apache Druid for analytics data. The article credits Swift's compiled type checking and concurrency with catching errors early and supporting efficient processing; Codable provides typed JSON parsing and rejects malformed input. It describes an architectural lesson from API versioning: shared DTO structs became difficult to change safely, so the newest API keeps request and response structs beside their controllers. For local development, the team uses Xcode and can connect either to local PostgreSQL or a SQLite file through Fluent. Its practical recommendations include structuring code with Swift packages, using Vapor's queues, jobs, migrations and middleware, versioning API paths, setting cache TTLs, and monitoring server errors and performance. The account is based on TelemetryDeck's experience and does not provide comparative benchmarks for other architectures.

### Source excerpt

TelemetryDeck is an app analytics service specifically for developers, designed to manage usage analytics that are anonymized, privacy-focused, and really easy to use. TelemetryDeck is managing the data of over 16 million people every month, helping thousands of app publishers improve their products, and we're doing it all with a Swift-based infrastructure. The decision to go with Swift brought a lot of unexpected advantages for us. We come from a world of iOS in the frontend, Python, Node, or Ruby in the backend for server-based applications. Compared to these languages and frameworks, Swift is just as easy to use, and its compiled nature allows us to catch a lot of possible errors at compile time instead of runtime, making it ideal for a hardened, high-performance web service. Let me share our journey and history with you. Adopting Swift for backend services TelemetryDeck is built on Vapor, a web framework written in Swift, for building scalable APIs and services. Similar to other Vapor-based projects like Things, TelemetryDeck runs on containers hosted in Kubernetes. Our metadata lives in Postgres, and our analytics data is stored in Apache Druid. We use Swift-native connectors to access APIs for these services. Some of those come from the Swift community, others we've written ourselves and are giving back to the open source ecosystem. In the very beginning, when TelemetryDeck was just a little exploratory hobby project, we wanted to go with Swift on the server simply because we love Swift, and we're pretty decent at it. Vapor was new, and we figured, let's try this out and learn a new way to apply and combine our skills. In the end, this decision turned out to be exactly the right one and resulted in a lean architecture that is highly performant, stable, and allows us to develop and iterate quickly. Swift's performance characteristics are remarkable, especially in multithreading. Python's Global Interpreter Lock has long constrained true parallelism, though rece

## Introducing Skia Graphite: Chrome's rasterization backend for the future

DevFeed: [Introducing Skia Graphite: Chrome's rasterization backend for the future](<https://devfeed.tech/articles/introducing-skia-graphite-chrome-s-rasterization-backend-for-the-future-4195.md>)

Original publisher: [Read original article](<https://blog.chromium.org/2025/07/introducing-skia-graphite-chromes.html>)

Author: Chromium Blog (noreply@blogger.com)

Published: 2025-07-08T17:46:00Z

Content type: article

Language: en

Sources: [Chromium Blog](<https://devfeed.tech/sources/chromium-blog.md>)

Topics: [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [Interaction to Next Paint](<https://devfeed.tech/topics/interaction-to-next-paint.md>), [browser](<https://devfeed.tech/topics/browser.md>), [OpenGL](<https://devfeed.tech/topics/opengl.md>), [shaders](<https://devfeed.tech/topics/shaders.md>), [Web](<https://devfeed.tech/topics/web.md>), [glsl](<https://devfeed.tech/topics/glsl.md>)

Tags: [chrome](<https://devfeed.tech/tags/chrome.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [graphics-apis](<https://devfeed.tech/tags/graphics-apis.md>), [interaction-to-next-paint](<https://devfeed.tech/tags/interaction-to-next-paint.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [none](<https://devfeed.tech/tags/none.md>), [performance](<https://devfeed.tech/tags/performance.md>), [render](<https://devfeed.tech/tags/render.md>), [screen](<https://devfeed.tech/tags/screen.md>), [shaders](<https://devfeed.tech/tags/shaders.md>), [the-fast-and-the-curious](<https://devfeed.tech/tags/the-fast-and-the-curious.md>), [vulkan](<https://devfeed.tech/tags/vulkan.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

The article introduces Skia Graphite, a new GPU rasterization backend for Chrome on Apple Silicon Macs. Graphite uses fewer code paths, supports modern graphics APIs such as Metal, Vulkan, and D3D12, and is multithreaded by default. It improved Motionmark 1.3 scores by almost 15% on a MacBook Pro M3 and improved several real-world performance metrics.

### Source excerpt

Today's The Fast and the Curious post covers the launch of Skia's new rasterization backend, Graphite, in Chrome on Apple Silicon Macs. Graphite is instrumental in helping Chrome achieve exceptional scores on Motionmark 1.3 and is key to unlocking a ton of future improvements in Chrome Graphics. A brief history of Skia in Chrome In Chrome, Skia is used to render paint commands from Blink and the browser UI into pixels on your screen, a process called rasterization. Skia has powered Chrome Graphics since the very beginning. Skia eventually ran into performance issues as the web evolved and became more complex, which led Chrome and Skia to invest in a GPU accelerated rasterization backend called Ganesh. Over the years, Ganesh matured into a solid highly performant rasterization backend and GPU rasterization launched on all platforms in Chrome on top of GL (via ANGLE on Windows D3D9/11). However, Ganesh always had a GL-centric design with too many specialized code paths and the team was hitting a wall when trying to implement optimizations that took advantage of modern graphics APIs in a principled manner. This set the stage for the team to rethink GPU rasterization from the ground up in the form of a new rasterization backend, Graphite. Graphite was developed from the start to be principled by having fewer and more comprehensible code paths. This forward looking design helps take advantage of modern graphics APIs like Metal, Vulkan and D3D12 and paradigms like compute based path rasterization, and is multithreaded by default. Results With Graphite in Chrome, we increased our Motionmark 1.3 scores by almost 15% on a Macbook Pro M3. At the same time, we improved real world metrics like INP (interaction to next paint time), LCP (time to largest contentful paint), graphics smoothness (percent dropped frames), GPU process malloc memory usage, and others. This all means substantially smoother interactions, less stutter when scrolling, and less time waiting for sites to show

## Using Clojure channels to increase throughput

DevFeed: [Using Clojure channels to increase throughput](<https://devfeed.tech/articles/using-clojure-channels-to-increase-throughput-30521.md>)

Original publisher: [Read original article](<https://medium.com/helpshift-engineering/using-clojure-channels-to-increase-throughput-c051cc7f9893?source=rss----3229f31ca4f4---4>)

Author: Abhinav Dubey

Published: 2025-05-28T10:07:12Z

Content type: article

Language: en

Sources: [Helpshift](<https://devfeed.tech/sources/helpshift.md>)

Topics: [Clojure](<https://devfeed.tech/topics/clojure.md>), [multithreading](<https://devfeed.tech/topics/multithreading.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [threadpools](<https://devfeed.tech/topics/threadpools.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>)

Tags: [channel](<https://devfeed.tech/tags/channel.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [core-async](<https://devfeed.tech/tags/core-async.md>), [grafana](<https://devfeed.tech/tags/grafana.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [kafka-consumer](<https://devfeed.tech/tags/kafka-consumer.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [parallelism](<https://devfeed.tech/tags/parallelism.md>), [performance](<https://devfeed.tech/tags/performance.md>), [single-threaded](<https://devfeed.tech/tags/single-threaded.md>), [throughput](<https://devfeed.tech/tags/throughput.md>), [worker](<https://devfeed.tech/tags/worker.md>)

### AI overview

A Clojure Kafka consumer can process messages faster by placing them on a `core.async` channel and having worker threads take and process them; the example uses blocking `>!!` and `<!!` operations and `future`. With 1,000 events, processing time fell from 16m 30s with one worker to 5m 42s with three and 5m with ten. For 2,500 events, it fell from 40m 28s to 13m 39s with three workers and 5m 6s with ten. More workers increased throughput but also raised CPU use and system load, so the article recommends tuning thread count to system capacity. Benchmarks ran on one machine, which the author says is sufficient to gauge the impact of adding workers but may not represent production.

### Source excerpt

When building systems that process large volumes of messages synchronously, performance bottlenecks can quickly become a challenge specially with single-threaded designs. In this post, we'll look at how leveraging worker threads in a Clojure-based Kafka consumer can significantly boost throughput & reduce total processing time. Using simple concurrency primitives, it's possible to achieve parallelism & scale gracefully, all while keeping the codebase clean & maintainable. We'll start with a baseline, introduce worker threads using Clojure's core.async & measure the impact. Setup & Context Kafka & Zookeeper For observability: Grafana Kafka producer: A simple script that sends messages to a Kafka topic at a configurable rate (messages per minute) for a fixed duration. After each event is pushed, a counter metric is emitted Kafka consumer: A simple script that listens to a topic & consumes messages & simulates processing time finding square-root of a number (henceforth, assume that it takes ~1 second to find the square root) . A counter metric is emitted after processing each message The Baseline: Single-Threaded Consumer If each message takes t seconds to process & there are n messages, total processing time becomes n x t seconds. This provides a clean baseline to evaluate the impact of using channel moving forward. Adding workers with core.asyncValues are conveyed on queue-like channels. By default channels require producer and consumer to rendezvous for the transfer of a value through the channel https://clojuredocs.org/clojure.core.async To improve throughput, we introduce parallelism using Clojure's core.async channels. Messages from Kafka are fed into a channel, & multiple worker threads read from this channel to process messages concurrently Here, we used >!! (blocking put) & <!! (blocking take) to communicate via channels & future to execute the business-logic on a separate thread Who gets blocked & when : The thread putting message into the channel will get bl

## Python 3.13 without GIL: Real-World Threading Finally Works

DevFeed: [Python 3.13 without GIL: Real-World Threading Finally Works](<https://devfeed.tech/articles/python-3-13-without-gil-real-world-threading-finally-works-43.md>)

Original publisher: [Read original article](<https://blog.abhimanyu-saharan.com/posts/making-the-gil-optional-a-deep-dive-into-pep-703>)

Author: Abhimanyu Saharan

Published: 2025-05-23T00:00:00Z

Content type: article

Language: en

Sources: [Abhimanyu Saharan](<https://devfeed.tech/sources/abhimanyu-s-blog.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>)

Tags: [install](<https://devfeed.tech/tags/install.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [python](<https://devfeed.tech/tags/python.md>), [python-3-13](<https://devfeed.tech/tags/python-3-13.md>), [threading](<https://devfeed.tech/tags/threading.md>)

### AI overview

An examination of Python 3.13's optional GIL, including installation steps, measured multithreading gains, and situations where threading outperforms multiprocessing.

### Source excerpt

Tested Python 3.13's optional GIL. Shared results showing real multithreading gains, install steps, and when it outperforms multiprocessing.

## Understanding Dispatchers: Main and Main.immediate

DevFeed: [Understanding Dispatchers: Main and Main.immediate](<https://devfeed.tech/articles/understanding-dispatchers-main-and-main-immediate-25756.md>)

Original publisher: [Read original article](<https://blog.shreyaspatil.dev/understanding-dispatchers-main-and-mainimmediate/>)

Author: Shreyas Patil

Published: 2025-04-02T12:22:06Z

Content type: tutorial

Language: en

Sources: [Shreyas Patil's Blog](<https://devfeed.tech/sources/shreyas-patil-s-blog.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Android](<https://devfeed.tech/topics/android.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-apps](<https://devfeed.tech/tags/android-apps.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [coroutines-flow](<https://devfeed.tech/tags/coroutines-flow.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-beginner](<https://devfeed.tech/tags/kotlin-beginner.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [main-thread](<https://devfeed.tech/tags/main-thread.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [reactive-programming](<https://devfeed.tech/tags/reactive-programming.md>), [threadpools](<https://devfeed.tech/tags/threadpools.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

A deep dive into Kotlin coroutine dispatchers on Android, explaining the difference between Dispatchers.Main and Dispatchers.Main.immediate. It describes how HandlerContext dispatches work and when execution is posted to the main thread or performed synchronously on the current thread.

### Source excerpt

A deep dive into Kotlin Coroutine Dispatchers. Understand the subtle but important difference between Dispatchers.Main and Dispatchers.Main.immediate in Android.

## Fearless Concurrency Ep.6: Understanding Rust ARC for Efficient Multithreading

DevFeed: [Fearless Concurrency Ep.6: Understanding Rust ARC for Efficient Multithreading](<https://devfeed.tech/articles/fearless-concurrency-ep-6-understanding-rust-arc-for-efficient-multithreading-22270.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2024/11/fearless-concurrency-ep6-understanding-rust-arc-for-efficient-multithreading.html>)

Published: 2024-11-21T00:00:00Z

Content type: article

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [atomic reference counting](<https://devfeed.tech/topics/atomic-reference-counting.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [multithreading](<https://devfeed.tech/topics/multithreading.md>), [thread safe data sharing](<https://devfeed.tech/topics/thread-safe-data-sharing.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [arc](<https://devfeed.tech/tags/arc.md>), [arc-best-practices](<https://devfeed.tech/tags/arc-best-practices.md>), [arc-for-performance](<https://devfeed.tech/tags/arc-for-performance.md>), [arc-in-rust](<https://devfeed.tech/tags/arc-in-rust.md>), [arc-memory-management](<https://devfeed.tech/tags/arc-memory-management.md>), [arc-ownership-model](<https://devfeed.tech/tags/arc-ownership-model.md>), [arc-shared-resources](<https://devfeed.tech/tags/arc-shared-resources.md>), [arc-vs-garbage-collection](<https://devfeed.tech/tags/arc-vs-garbage-collection.md>), [arc-with-mutex](<https://devfeed.tech/tags/arc-with-mutex.md>), [arc-with-rwlock](<https://devfeed.tech/tags/arc-with-rwlock.md>), [atomic](<https://devfeed.tech/tags/atomic.md>), [atomic-reference-counting](<https://devfeed.tech/tags/atomic-reference-counting.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-in-rust](<https://devfeed.tech/tags/concurrency-in-rust.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [connection-pool](<https://devfeed.tech/tags/connection-pool.md>), [database](<https://devfeed.tech/tags/database.md>), [efficient-multithreading-rust](<https://devfeed.tech/tags/efficient-multithreading-rust.md>), [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [global](<https://devfeed.tech/tags/global.md>), [heap](<https://devfeed.tech/tags/heap.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [interior-mutability-arc](<https://devfeed.tech/tags/interior-mutability-arc.md>), [large](<https://devfeed.tech/tags/large.md>), [lightweight](<https://devfeed.tech/tags/lightweight.md>), [lightweight-memory-management](<https://devfeed.tech/tags/lightweight-memory-management.md>), [memory](<https://devfeed.tech/tags/memory.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [multithreading-with-arc](<https://devfeed.tech/tags/multithreading-with-arc.md>), [ownership](<https://devfeed.tech/tags/ownership.md>), [rust](<https://devfeed.tech/tags/rust.md>), [rust-arc-tutorial](<https://devfeed.tech/tags/rust-arc-tutorial.md>), [rust-arc-use-cases](<https://devfeed.tech/tags/rust-arc-use-cases.md>), [rust-concurrency-tools](<https://devfeed.tech/tags/rust-concurrency-tools.md>), [rust-shared-ownership](<https://devfeed.tech/tags/rust-shared-ownership.md>), [rust-thread-safe-programming](<https://devfeed.tech/tags/rust-thread-safe-programming.md>), [thread-safe-data-sharing](<https://devfeed.tech/tags/thread-safe-data-sharing.md>)

### AI overview

Rust ARC shares a heap-allocated value across threads by cloning a pointer and incrementing its reference count; dropping each pointer decrements the count, and the value is destroyed when the count reaches zero. This avoids copying the underlying data and can suit high fan-out sharing, such as sharing configuration or a database connection pool. The excerpt also mentions combining ARC with interior mutability for thread-safe updates and flags circular references as a pitfall. It presents ARC as shared ownership without a traditional garbage collector; the excerpt does not identify the interior-mutability types or give their usage details.

### Source excerpt

Introduction: Welcome to Episode 6 of the Fearless Concurrency in Rust series! In this episode, we explore the powerful concept of ARC (Atomic Reference Counting) and its critical role in managing shared resources in multithreaded Rust programs. By leveraging ARC, developers can safely share ownership of data across threads without relying on a traditional garbage collector, enabling efficient, flexible, and scalable concurrency. What is ARC?: Understanding Atomic Reference Counting as a lightweight, manual garbage collection system.

## Fearless Concurrency Ep.1: Rust's Approach to Safe and Manageable Multithreading

DevFeed: [Fearless Concurrency Ep.1: Rust's Approach to Safe and Manageable Multithreading](<https://devfeed.tech/articles/fearless-concurrency-ep-1-rust-s-approach-to-safe-and-manageable-multithreading-22258.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2024/09/fearless-concurrency-ep1-rusts-approach-to-safe-and-manageable-multithreading.html>)

Published: 2024-09-12T00:00:00Z

Content type: article

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [multithreading](<https://devfeed.tech/topics/multithreading.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [thread safe data sharing](<https://devfeed.tech/topics/thread-safe-data-sharing.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [c/c++](<https://devfeed.tech/topics/c-c-plus-plus.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [basics](<https://devfeed.tech/tags/basics.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [compile-time-safety-in-rust](<https://devfeed.tech/tags/compile-time-safety-in-rust.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-in-rust](<https://devfeed.tech/tags/concurrency-in-rust.md>), [concurrency-pitfalls-in-c-plus-plus](<https://devfeed.tech/tags/concurrency-pitfalls-in-c-plus-plus.md>), [concurrently](<https://devfeed.tech/tags/concurrently.md>), [context](<https://devfeed.tech/tags/context.md>), [efficient-threading-in-rust](<https://devfeed.tech/tags/efficient-threading-in-rust.md>), [go](<https://devfeed.tech/tags/go.md>), [go-vs-rust-concurrency](<https://devfeed.tech/tags/go-vs-rust-concurrency.md>), [herbert-wolverson-fearless-concurrency](<https://devfeed.tech/tags/herbert-wolverson-fearless-concurrency.md>), [history](<https://devfeed.tech/tags/history.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [managing-threads-in-rust](<https://devfeed.tech/tags/managing-threads-in-rust.md>), [memory-safety-in-rust](<https://devfeed.tech/tags/memory-safety-in-rust.md>), [model](<https://devfeed.tech/tags/model.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [mutexes-and-locks-in-rust](<https://devfeed.tech/tags/mutexes-and-locks-in-rust.md>), [operating-systems](<https://devfeed.tech/tags/operating-systems.md>), [preventing-data-races-in-rust](<https://devfeed.tech/tags/preventing-data-races-in-rust.md>), [programming](<https://devfeed.tech/tags/programming.md>), [race-conditions-in-rust](<https://devfeed.tech/tags/race-conditions-in-rust.md>), [rust](<https://devfeed.tech/tags/rust.md>), [rust-concurrency-tools](<https://devfeed.tech/tags/rust-concurrency-tools.md>), [rust-memory-management](<https://devfeed.tech/tags/rust-memory-management.md>), [rust-multithreading](<https://devfeed.tech/tags/rust-multithreading.md>), [rust-ownership-system](<https://devfeed.tech/tags/rust-ownership-system.md>), [rust-programming-threads](<https://devfeed.tech/tags/rust-programming-threads.md>), [rust-thread-management-tips](<https://devfeed.tech/tags/rust-thread-management-tips.md>), [rust-thread-safety](<https://devfeed.tech/tags/rust-thread-safety.md>), [rust-vs-c-plus-plus-multithreading](<https://devfeed.tech/tags/rust-vs-c-plus-plus-multithreading.md>), [safe-concurrency-in-rust](<https://devfeed.tech/tags/safe-concurrency-in-rust.md>), [thread](<https://devfeed.tech/tags/thread.md>), [threading](<https://devfeed.tech/tags/threading.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

Rust uses OS-native threads with little additional overhead, but shared data still requires careful coordination. The excerpt describes common multithreading hazards such as race conditions and garbled output, and explains that Rust's ownership and borrowing rules prevent unsynchronized concurrent mutation. Mutexes and locks provide explicit coordination when threads need access to shared data; Rust's type system checks safety constraints at compile time. The discussion contrasts threads with older, resource-intensive process forking and mentions C++ and Go examples of concurrency problems, but gives no detailed comparative feature analysis.

### Source excerpt

Introduction: In Episode 1 of the Fearless Concurrency in Rust series, Herbert Wolverson introduces the foundational concept of threads in programming, tracing their origins and evolution while demonstrating how Rust handles concurrency in a safer, more manageable way. He explores the history of threads and their role in enabling programs to perform multiple tasks simultaneously, comparing Rust's threading model with traditional approaches in C++ and Go. Thread Basics and History: Understanding how threads function within operating systems and their development over time.

## Qdrant Summer of Code 2024 - WASM based Dimension Reduction

DevFeed: [Qdrant Summer of Code 2024 - WASM based Dimension Reduction](<https://devfeed.tech/articles/qdrant-summer-of-code-2024-wasm-based-dimension-reduction-65206.md>)

Original publisher: [Read original article](<https://qdrant.tech/blog/dimension-reduction-qsoc/>)

Author: info@qdrant.tech (Andrey Vasnetsov)

Published: 2024-08-31T10:39:48Z

Content type: article

Language: en

Sources: [Qdrant Blog on Qdrant - Vector Search Engine](<https://devfeed.tech/sources/qdrant-blog-on-qdrant-vector-search-engine.md>)

Topics: [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [The Julia Language](<https://devfeed.tech/topics/julia.md>)

Tags: [compute](<https://devfeed.tech/tags/compute.md>), [dimension-reduction](<https://devfeed.tech/tags/dimension-reduction.md>), [main-thread](<https://devfeed.tech/tags/main-thread.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [qdrant](<https://devfeed.tech/tags/qdrant.md>), [qdrant-data-visualization](<https://devfeed.tech/tags/qdrant-data-visualization.md>), [qsoc-24](<https://devfeed.tech/tags/qsoc-24.md>), [rust](<https://devfeed.tech/tags/rust.md>), [tsne](<https://devfeed.tech/tags/tsne.md>), [vector-similarity](<https://devfeed.tech/tags/vector-similarity.md>), [visualization](<https://devfeed.tech/tags/visualization.md>), [wasm](<https://devfeed.tech/tags/wasm.md>), [web-assembly](<https://devfeed.tech/tags/web-assembly.md>)

### AI overview

A Qdrant Summer of Code project used Rust and WebAssembly to speed up t-SNE vector visualization in the Web UI. Barnes-Hut approximation reduced the recorded processing time for 10,000 vectors from 884.728 seconds to 104.191 seconds, while neighbor lookup and chart rendering remained bottlenecks. The work also used shared memory and on-demand updates to help keep the browser responsive.

### Source excerpt

Editor's note: This 2024 post was edited for length and clarity. Read the original version. The screenshots and profiling results preserve measurements from the 2024 project. I'm Jishan Bhattacharya, and I worked on vector visualization during Qdrant Summer of Code 2024 with Andrey Vasnetsov. Reducing high-dimensional vectors to a two-dimensional plot could leave the Web UI waiting for calculations. My project used Rust and WebAssembly (WASM) to improve that process.

## Collecting items from the Flow in chunks💦

DevFeed: [Collecting items from the Flow in chunks💦](<https://devfeed.tech/articles/collecting-items-from-the-flow-in-chunks-25706.md>)

Original publisher: [Read original article](<https://blog.shreyaspatil.dev/collecting-items-from-the-flow-in-chunks/>)

Author: Shreyas Patil

Published: 2023-10-23T04:46:23Z

Content type: tutorial

Language: en

Sources: [Shreyas Patil's Blog](<https://devfeed.tech/sources/shreyas-patil-s-blog.md>)

Topics: [coroutines-flow](<https://devfeed.tech/topics/coroutines-flow.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [batch insert](<https://devfeed.tech/topics/batch-insert.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [database](<https://devfeed.tech/tags/database.md>), [flow](<https://devfeed.tech/tags/flow.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [network](<https://devfeed.tech/tags/network.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [processing](<https://devfeed.tech/tags/processing.md>), [reactive-programming](<https://devfeed.tech/tags/reactive-programming.md>), [streams](<https://devfeed.tech/tags/streams.md>)

### AI overview

For high-frequency Flow data such as analytics events, collecting items over time intervals can reduce the cost of repeated database or network operations and keep that work from competing as often with higher-priority app tasks. The excerpt contrasts this time-based batching need with collection chunking by item count and introduces a custom Flow operator intended to emit chunks at fixed intervals. It does not include the implementation or explain how the operator handles timing and data retention.

### Source excerpt

Learn how to collect Kotlin Flow items in chunks or intervals without losing data. A practical guide to handling high-frequency data streams efficiently.

## Sleepless Concurrency: delay() vs. Thread.sleep()

DevFeed: [Sleepless Concurrency: delay() vs. Thread.sleep()](<https://devfeed.tech/articles/sleepless-concurrency-delay-vs-thread-sleep-25750.md>)

Original publisher: [Read original article](<https://blog.shreyaspatil.dev/sleepless-concurrency-delay-vs-threadsleep/>)

Author: Shreyas Patil

Published: 2023-07-31T04:39:30Z

Content type: article

Language: en

Sources: [Shreyas Patil's Blog](<https://devfeed.tech/sources/shreyas-patil-s-blog.md>)

Topics: [Coroutines](<https://devfeed.tech/topics/coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [coroutine](<https://devfeed.tech/tags/coroutine.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [delay](<https://devfeed.tech/tags/delay.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [main-thread](<https://devfeed.tech/tags/main-thread.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [sleep](<https://devfeed.tech/tags/sleep.md>), [thread](<https://devfeed.tech/tags/thread.md>)

### AI overview

On a single thread, coroutine `delay()` suspends the coroutine without blocking the thread, allowing other coroutines to run; Java `Thread.sleep()` blocks the thread, preventing them from running until sleep ends. In the excerpt's two-coroutine example with a 1,000 ms wait, both coroutines launch in the same second with `delay()`, and total execution takes 1,045 ms; with `sleep()`, the second launches about one second later and total execution takes 2,044 ms. The excerpt frames the APIs as serving different use cases.

### Source excerpt

Explore the difference between delay() and Thread.sleep() in Kotlin. Understand how non-blocking concurrency works from a platform perspective.

## PSA: Thread-local state is no longer recommended

DevFeed: [PSA: Thread-local state is no longer recommended](<https://devfeed.tech/articles/psa-thread-local-state-is-no-longer-recommended-46339.md>)

Original publisher: [Read original article](<https://julialang.org/blog/2023/07/PSA-dont-use-threadid/index.html>)

Author: Mason Protter; Valentin Churavy; Ian Butterworth; and many helpful contributors

Published: 2023-07-06T00:00:00Z

Content type: article

Language: en

Sources: [JuliaLang - The Julia programming language](<https://devfeed.tech/sources/julialang-the-julia-programming-language.md>)

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [multithreading](<https://devfeed.tech/topics/multithreading.md>), [The Julia Language](<https://devfeed.tech/topics/julia.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-bugs](<https://devfeed.tech/tags/concurrency-bugs.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [thread](<https://devfeed.tech/tags/thread.md>)

### AI overview

A Julia blog post warns that relying on thread-local state and threadid() can produce race conditions because tasks may yield and migrate between tasks on the same thread. It recommends safer task-based patterns for managing and returning state.

### Source excerpt

PSA: Thread-local state is no longer recommended; Common misconceptions about threadid() and nthreads()

## Exploring "select" expression of Kotlin coroutines

DevFeed: [Exploring "select" expression of Kotlin coroutines](<https://devfeed.tech/articles/exploring-select-expression-of-kotlin-coroutines-25719.md>)

Original publisher: [Read original article](<https://blog.shreyaspatil.dev/exploring-select-expression-of-kotlin-coroutines/>)

Author: Shreyas Patil

Published: 2022-09-27T14:29:44Z

Content type: tutorial

Language: en

Sources: [Shreyas Patil's Blog](<https://devfeed.tech/sources/shreyas-patil-s-blog.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [apis](<https://devfeed.tech/tags/apis.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [await](<https://devfeed.tech/tags/await.md>), [builder](<https://devfeed.tech/tags/builder.md>), [channel](<https://devfeed.tech/tags/channel.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [expression](<https://devfeed.tech/tags/expression.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [select](<https://devfeed.tech/tags/select.md>), [type-safe](<https://devfeed.tech/tags/type-safe.md>)

### AI overview

Kotlin coroutines' `select` expression suspends while waiting on multiple clauses and proceeds with the first one selected; it can also fail if a clause fails. The excerpt illustrates using it to take the faster result from concurrent suspending functions, dismiss a dialog when either of two buttons is clicked, and choose values produced by channels. In the channel example, odd values are selected more often because they are produced sooner. If multiple clauses can be selected at once, the excerpt says the first executed clause wins.

### Source excerpt

Learn how to use the 'select' expression in Kotlin Coroutines to await multiple suspending functions and select the first one that completes.

## Apollo Kotlin: New Multiplatform Memory Manager

DevFeed: [Apollo Kotlin: New Multiplatform Memory Manager](<https://devfeed.tech/articles/apollo-kotlin-new-multiplatform-memory-manager-23202.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/apollo-kotlin-new-multiplatform-memory-manager>)

Author: Benoit Lubek

Published: 2022-08-09T12:05:22Z

Content type: news

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [apollo](<https://devfeed.tech/tags/apollo.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [immutability](<https://devfeed.tech/tags/immutability.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [kotlin-native](<https://devfeed.tech/tags/kotlin-native.md>), [library](<https://devfeed.tech/tags/library.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [multiplatform](<https://devfeed.tech/tags/multiplatform.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [performance](<https://devfeed.tech/tags/performance.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

### AI overview

Apollo Kotlin 3.5.0 adopts Kotlin Native's new memory manager. The change removes several threading and immutability restrictions, including the requirement to access the library exclusively from the Main thread on Apple targets. Initial benchmarks indicate performance improvements of up to 45%.

### Source excerpt

Back in May, we shared about how Apollo Kotlin started supporting the Hierarchical project structure. Following the Kotlin Multiplatform ecosystem, here is some more news, this time about the new Memory Manager. Kotlin Native's Memory Manager Since its early days, Kotlin Native has had specific rules regarding multithreading and immutability: - objects could only be accessed from the thread they were created in - unless they had been "frozen", in which case they could be accessed by multiple...

## Android Worldwide: January 2022

DevFeed: [Android Worldwide: January 2022](<https://devfeed.tech/articles/android-worldwide-january-2022-28365.md>)

Original publisher: [Read original article](<https://siddroid.com/post/community/event-android-worldwide-january-2022/>)

Author: Siddhesh Patil

Published: 2022-01-26T18:32:16Z

Content type: article

Language: en

Sources: [Sid Patil - Android Engineer and Kotlin Advocate](<https://devfeed.tech/sources/sid-patil-android-engineer-and-kotlin-advocate.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Database](<https://devfeed.tech/topics/database.md>), [Mobile](<https://devfeed.tech/topics/mobile.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [ana-zharkova](<https://devfeed.tech/tags/ana-zharkova.md>), [android](<https://devfeed.tech/tags/android.md>), [android-events-in-mumbai](<https://devfeed.tech/tags/android-events-in-mumbai.md>), [android-talks-2022](<https://devfeed.tech/tags/android-talks-2022.md>), [ash-davis](<https://devfeed.tech/tags/ash-davis.md>), [best-android-developer-communities](<https://devfeed.tech/tags/best-android-developer-communities.md>), [better-gradle-dependencies](<https://devfeed.tech/tags/better-gradle-dependencies.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [ed-george](<https://devfeed.tech/tags/ed-george.md>), [gabor-varadi](<https://devfeed.tech/tags/gabor-varadi.md>), [gde-talks](<https://devfeed.tech/tags/gde-talks.md>), [gdg-groups](<https://devfeed.tech/tags/gdg-groups.md>), [gema-rodriguez](<https://devfeed.tech/tags/gema-rodriguez.md>), [improving-gradle](<https://devfeed.tech/tags/improving-gradle.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [kmm](<https://devfeed.tech/tags/kmm.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-for-ios](<https://devfeed.tech/tags/kotlin-for-ios.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [kotlin-mumbai](<https://devfeed.tech/tags/kotlin-mumbai.md>), [kotlin-user-groups](<https://devfeed.tech/tags/kotlin-user-groups.md>), [kshitij-chauhan](<https://devfeed.tech/tags/kshitij-chauhan.md>), [mohit-sarveiya](<https://devfeed.tech/tags/mohit-sarveiya.md>), [multiplatform](<https://devfeed.tech/tags/multiplatform.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rashanjyot-arora](<https://devfeed.tech/tags/rashanjyot-arora.md>), [room](<https://devfeed.tech/tags/room.md>), [ryan-kay](<https://devfeed.tech/tags/ryan-kay.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [shared-flows-in-kotlin](<https://devfeed.tech/tags/shared-flows-in-kotlin.md>), [sierra-obryan](<https://devfeed.tech/tags/sierra-obryan.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [william-shelor](<https://devfeed.tech/tags/william-shelor.md>)

### AI overview

Android Worldwide announces its January 25-26, 2022 sessions, covering Kotlin Multiplatform memory management, SQLite and Room performance, and full-text search. The article also introduces the event speakers and participating communities.

### Source excerpt

We kickstart 2022 at Android Worldwide with a two days session on January 25th & 26th. This quarter we cover different topics ranging from managing memory at multiplatform level with Kotlin, maxing out the performance of your SQLite database, implementing FTS for faster database querying and much more!

## Julia 1.7 Highlights

DevFeed: [Julia 1.7 Highlights](<https://devfeed.tech/articles/julia-1-7-highlights-46332.md>)

Original publisher: [Read original article](<https://julialang.org/blog/2021/11/julia-1.7-highlights/index.html>)

Author: Jeff Bezanson; Jameson Nash; Ian Butterworth; Kristoffer Carlsson; Shuhei Kadowaki; Elliot Saba; Viral B Shah; Mosè Giordano; Simeon Schaub; Nicholas Bauer

Published: 2021-11-30T00:00:00Z

Content type: release

Language: en

Sources: [JuliaLang - The Julia programming language](<https://devfeed.tech/sources/julialang-the-julia-programming-language.md>)

Topics: [The Julia Language](<https://devfeed.tech/topics/julia.md>), [multithreading](<https://devfeed.tech/topics/multithreading.md>), [releases](<https://devfeed.tech/topics/releases.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Randomizer](<https://devfeed.tech/topics/randomizer.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [reproducibility](<https://devfeed.tech/topics/reproducibility.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [atomic](<https://devfeed.tech/tags/atomic.md>), [atomics](<https://devfeed.tech/tags/atomics.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [release](<https://devfeed.tech/tags/release.md>), [releases](<https://devfeed.tech/tags/releases.md>), [reproducibility](<https://devfeed.tech/tags/reproducibility.md>), [scheduling](<https://devfeed.tech/tags/scheduling.md>), [synchronization](<https://devfeed.tech/tags/synchronization.md>)

### AI overview

Julia 1.7 is presented as a release overview, highlighting changes for multithreaded programs. The release introduces task-based random-number state for reproducible results, addresses runtime race conditions and synchronization issues, improves workload scheduling, and adds atomic access to mutable struct fields.

### Source excerpt

Some highlights of the Julia 1.7 release.

## Rules of painless unit tests

DevFeed: [Rules of painless unit tests](<https://devfeed.tech/articles/rules-of-painless-unit-tests-26136.md>)

Original publisher: [Read original article](<https://vadzimv.dev/2021/09/30/painless-unit-tests.html>)

Author: Vadzimv Dev Blog

Published: 2021-09-30T07:00:00Z

Content type: article

Language: en

Sources: [Vadzimv Dev](<https://devfeed.tech/sources/vadzimv-dev-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [code](<https://devfeed.tech/tags/code.md>), [communication](<https://devfeed.tech/tags/communication.md>), [complex](<https://devfeed.tech/tags/complex.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [details](<https://devfeed.tech/tags/details.md>), [email](<https://devfeed.tech/tags/email.md>), [external](<https://devfeed.tech/tags/external.md>), [factory](<https://devfeed.tech/tags/factory.md>), [fake](<https://devfeed.tech/tags/fake.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [network](<https://devfeed.tech/tags/network.md>), [random](<https://devfeed.tech/tags/random.md>), [red](<https://devfeed.tech/tags/red.md>), [rules](<https://devfeed.tech/tags/rules.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>), [useful](<https://devfeed.tech/tags/useful.md>)

### AI overview

The author's core takeaway is to make unit tests specific to observable behavior so refactoring does not break tests when functionality still works. Use the SUT's public API as clients do, hardcode expected results, and keep test logic simple. Isolate tests from networks, filesystems, time, randomness, concurrency, sleeps, and delays with fakes, stubs, or mocks. Use fakes or stubs to provide dependency results; reserve mocks for verifying important external interactions. Check only behavior that matters, since internal calls and unrelated fields can change without affecting the feature. The excerpt also begins a rule favoring factory methods over constructors for test objects, especially DTOs, but cuts off before explaining how.

### Source excerpt

Rules that make unit tests useful.

## False Sharing

DevFeed: [False Sharing](<https://devfeed.tech/articles/false-sharing-24842.md>)

Original publisher: [Read original article](<https://alidg.me/blog/2020/5/1/false-sharing>)

Author: Alimate

Published: 2020-05-01T00:00:00Z

Content type: article

Language: en

Sources: [Ali Dehghan - Kemikit](<https://devfeed.tech/sources/ali-dehghan-kemikit.md>)

Topics: [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [thread safe data sharing](<https://devfeed.tech/topics/thread-safe-data-sharing.md>)

Tags: [atomic](<https://devfeed.tech/tags/atomic.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [latency](<https://devfeed.tech/tags/latency.md>), [layout](<https://devfeed.tech/tags/layout.md>), [measuring](<https://devfeed.tech/tags/measuring.md>), [memory](<https://devfeed.tech/tags/memory.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [padding](<https://devfeed.tech/tags/padding.md>), [sharing](<https://devfeed.tech/tags/sharing.md>), [threads](<https://devfeed.tech/tags/threads.md>), [throughput](<https://devfeed.tech/tags/throughput.md>)

### AI overview

The excerpt benchmarks eight atomic counters incremented by eight threads, each targeting a distinct counter, and reports about 170 ns per call for the initial layout. Despite no logical counter contention, shared memory layout can affect performance: adding padding between counters produces surprising latency changes. The excerpt describes using JOL to inspect object layout and padding counters until each occupies a separate 64-byte area, but it ends before reporting the final benchmark result or explaining the full measurement.

### Source excerpt

Measuring false-sharing effect on latency and throughput

## Awaitility

DevFeed: [Awaitility](<https://devfeed.tech/articles/awaitility-27316.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201910/awaitility/>)

Published: 2019-10-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [async](<https://devfeed.tech/topics/async.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [examples](<https://devfeed.tech/tags/examples.md>), [executorservice](<https://devfeed.tech/tags/executorservice.md>), [library](<https://devfeed.tech/tags/library.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [queue](<https://devfeed.tech/tags/queue.md>), [testing](<https://devfeed.tech/tags/testing.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

This tutorial introduces Awaitility, a small library for testing asynchronous code. It explains how Awaitility can express expectations for multithreaded systems concisely, using a producer-consumer example with a queue.

### Source excerpt

If you are not working with multithreading programming and don't have to test any asynchronous code then this post will probably do you nothing good. But if you have ever struggled with testing some logic running in multiple threads and you don't know Awaitility. A small library helps testing asynchronous code. If you've never heard of it then you should continue reading. Read more

[Next page](<https://devfeed.tech/tags/multithreading.md?cursor=WyIyMDE5LTEwLTEwVDAwOjAwOjAwKzAwOjAwIiwgImQxMTczZDQ3LTEwZmUtNGE5OC1iMjY1LTA3NjFkN2YwZTBkNyJd>)