Thread safety
Computer programming concept applicable to multi-threaded programs
In multi-threaded computer programming, a function is thread-safe when it can be invoked or accessed concurrently by multiple threads without causing unexpected behavior, race conditions, or data corruption. As in the multi-threaded context where a program executes several threads simultaneously in a shared address space and each of those threads has access to every other thread's memory, thread-safe functions need to ensure that all those threads behave properly and fulfill their design specifications without unintended interaction.
Nº Q1326976 ★
Common · Knowledge
Thread safety
Computer programming concept applicable to multi-threaded programs
In multi-threaded computer programming, a function is thread-safe when it can be invoked or accessed concurrently by multiple threads without causing unexpected behavior, race conditions, or data corruption. As in the multi-threaded context where a program executes several threads simultaneously in a shared address space and each of those threads has access to every other thread's memory, thread-safe functions need to ensure that all those threads behave properly and fulfill their design specifications without unintended interaction.
From Wikipedia
In multi-threaded computer programming, a function is thread-safe when it can be invoked or accessed concurrently by multiple threads without causing unexpected behavior, race conditions, or data corruption. As in the multi-threaded context where a program executes several threads simultaneously in a shared address space and each of those threads has access to every other thread's memory, thread-safe functions need to ensure that all those threads behave properly and fulfill their design specifications without unintended interaction. There are various strategies for making thread-safe data structures.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
Thread (computing)
Smallest sequence of programmed instructions that can be managed independently by a scheduler
Nº Q213092 ★★★
Not listed
-
F
Functional safety
Protection of equipment in response to inputs
Nº Q2646951 ★★
Not listed
-
Multithreading (computer architecture)
Ability of a central processing unit (CPU) or a single core in a multi-core processor to execute multiple processes or threads concurrently
Nº Q1064412 ★★
Not listed
-
S
Secure multi-party computation
Subfield of cryptography
Nº Q2465888 ★
Not listed
-
L
Lock (computer science)
Synchronization mechanism for enforcing limits on concurrent access to a resource
Nº Q1427251 ★★
Not listed
-
p
proteccion civil
Nº Q6123913 ★
Not listed