||Concurrency & async

Explore how the event loop, task queues, race conditions, and locks affect execution order. — 26 entries

···

Event loop이벤트 루프

When the call stack empties, the event loop drains microtasks before taking the next task.

···

Promise microtask프로미스 마이크로태스크

Promise reactions run after the current stack and before the next timer task.

···

Async/awaitasync/await

Await pauses the rest of an async function and resumes it after settlement.

···

Race condition경쟁 상태

The final value changes with the interleaving of concurrent reads and writes.

···

Mutex lock뮤텍스 잠금

Pass a lock so only one job enters the critical section at a time.

···

Semaphore세마포어

Admit a limited number of jobs and queue the rest.

···

Deadlock교착 상태

Jobs each wait for a resource held by the other and stop progressing.

···

Thread pool스레드 풀

Dispatch jobs to a bounded set of workers and queue excess work.

···

Producer-consumer생산자·소비자

Decouple production and consumption with an intermediate buffer.

···

Backpressure역압

Signal producers to slow down when consumers cannot keep up.

···

Async cancellation비동기 취소

Propagate cancellation to unneeded work and release its resources.

···

Actor model액터 모델

Each actor owns state and a mailbox, processing messages one at a time.

···

Free-threaded Python자유 스레딩 파이썬

A build with the GIL disabled lets Python threads run CPU work in parallel.

···

InterpreterPoolExecutor인터프리터 풀 실행기

Run each worker in an isolated Python interpreter.

···

Java StructuredTaskScope (preview)자바 구조화 태스크 범위 (미리보기)

A parent scope owns child task start, join, and cancellation.

···

Swift default actor isolation스위프트 기본 액터 격리

Set a default isolation domain so UI state access stays with one actor.

···

Container-aware GOMAXPROCS컨테이너 CPU 인식 병렬도

Match Go’s default runtime parallelism to the container CPU limit.

···

Go flight recorderGo 비행 기록기

Retain a recent execution trace in a buffer until a trigger captures it.

···

Java scoped values자바 범위 값

Bind a value to a dynamic execution scope, then restore the prior binding on exit.

···

Swift isolated conformance스위프트 격리된 프로토콜 준수

Bind a protocol conformance to an actor so only safe call contexts can use it.

···

Swift nonsending async스위프트 호출자 격리 비동기 함수

Continue on the caller actor, or opt into a separate executor with @concurrent.

···

Rust async closures러스트 비동기 클로저

An async closure can borrow its captured values across the future it returns.

···

Goroutine leak profile고루틴 누수 프로파일

Find goroutines that can never be unblocked in a dedicated profile.

···

Starvation기아 상태

One job makes no progress because other jobs repeatedly take a needed resource.

···

Channel message passing채널 메시지 전달

A sender and receiver exchange values through a channel and may wait for each other.

···

Atomic operation원자적 연산

Update shared state with an indivisible operation.

Open as page ↗