---
title: "Releasing Execution Contexts"
description: "Crystal replaces its preview MT model with Execution Contexts, an interface for orchestrating fibers across threads with three built-in types: Concurrent (one thread at a time), Parallel (work-stealing, auto-scaling up to a configured maximum roughly every 100 ms), and Isolated (a fiber owns a thread)."
url: "https://swe.quest/articles/releasing-execution-contexts-9726a870e2fb5d18"
canonical: "https://crystal-lang.org/2026/07/12/releasing-execution-contexts/"
source: "Crystal Blog"
published: "2026-07-12"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["concurrency","runtimes"]
---

# Releasing Execution Contexts

A post on [Crystal Blog](https://swe.quest/sources/crystal.md), published 2026-07-12, 6 min read, Release. Original: [https://crystal-lang.org/2026/07/12/releasing-execution-contexts/](https://crystal-lang.org/2026/07/12/releasing-execution-contexts/)

## Summary

Crystal replaces its preview MT model with Execution Contexts, an interface for orchestrating fibers across threads with three built-in types: Concurrent (one thread at a time), Parallel (work-stealing, auto-scaling up to a configured maximum roughly every 100 ms), and Isolated (a fiber owns a thread). The default context is parallel with parallelism 1, so existing apps stay single-threaded until they call resize, and CRYSTAL\_WORKERS is no longer read automatically. Breaking changes: fibers can migrate between threads, schedulers can hop threads during blocking syscalls like getaddrinfo (which affects thread-locals and main-thread-bound C libraries), and spawn(same\_thread: true) now raises in parallel contexts. The without\_mt and preview\_mt flags revert to the legacy schedulers for now.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)

## Prerequisites

- fibers and green threads
- multithreading basics ([easy posts on Concurrency](https://swe.quest/tags/concurrency.md?difficulty=easy))

## Keywords

Crystal, Execution Contexts, preview\_mt, work stealing, CRYSTAL\_WORKERS, 84codes

## Related posts

- [Accelerate ND-Parallel: A guide to Efficient Multi-GPU Training](https://swe.quest/articles/accelerate-nd-parallel-a-guide-to-efficient-multi-gpu-training-b84f16c2d8888d39.md): Hugging Face · 2025-08-08 · Hard · 18 min read · Model training, Distributed systems, Python
  Accelerate's ParallelismConfig, also exposed through Axolotl config fields, lets you compose data parallelism, FSDP, tensor parallelism and context parallelism in one training setup.
- [Unlocking asynchronicity in continuous batching](https://swe.quest/articles/unlocking-asynchronicity-in-continuous-batching-fe214c7fa26641ee.md): Hugging Face · 2026-05-14 · Hard · 20 min read · Inference & serving, Performance engineering, Concurrency, Hardware, LLMs
  Synchronous continuous batching makes the CPU and GPU take turns, and profiling an 8B model generating 8K tokens at batch size 32 shows the GPU idle for 24% of the 300.6-second runtime while the CPU prepares batches.
- [Announcing Silk: a silky smooth fiber runtime for ClickHouse](https://swe.quest/articles/announcing-silk-a-silky-smooth-fiber-runtime-for-clickhouse-bd3ca633b291b6b6.md): ClickHouse · 2026-06-25 · Hard · 11 min read · Concurrency, Runtimes & VMs, C & C++, Performance engineering, Linux
  Silk is a C++ stackful-fiber runtime for ClickHouse. It pins one scheduler thread per CPU, uses io\_uring as its I/O foundation, steals work in order of CPU topology cost (hyperthread sibling, then same socket, then cross-socket), and does zero heap allocation in the steady-state hot path through mmap'd stack pools, stack-resident futures and intrusive containers.
- [Native Async/Coroutine Reads in RocksDB](https://swe.quest/articles/native-async-coroutine-reads-in-rocksdb-a16f6ef8c30162a7.md): RocksDB Blog · 2026-08-24 · Hard · 10 min read · Storage engines, Concurrency, C & C++, Performance engineering, Databases
  RocksDB 11.10.0 adds experimental native asynchronous Get/MultiGet APIs (callback-based GetAsync/MultiGetAsync and Folly-task-based CoroDB::CoGet/CoMultiGet) that suspend a read at the SST block-miss filesystem boundary and resume it on the same io\_uring-backed EventBase thread, so a small read executor can sustain high storage queue depth without one parked thread per read.
- [To Thread or Not to Thread: An In-Depth Look at Ruby’s Execution Models](https://swe.quest/articles/to-thread-or-not-to-thread-an-in-depth-look-at-ruby-s-execution-models-18ca691643d5cc44.md): Shopify Engineering · 2022-05-31 · Medium · 15 min read · Ruby, Concurrency, Memory management, Performance engineering, Runtimes & VMs
  Threaded Ruby servers like Puma and Sidekiq save memory over forking servers, but the gap is smaller than RSS suggests once copy-on-write sharing is measured properly with PSS and /proc/$PID/smaps\_rollup.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
