# Thread-Safety

- ## Thread-safe functions / Reentrancy

  - Functions that can be simultaneously executed by multiple threads - safely.

- ## Deadlock

  - When a thread is permanently prevented from executing.

- ## Race Conditions

  - Multiple threads performing operations, the result of which depends on unpredictable timing factors.

- ## Shared Objects

  - Objects in the address space of a process that are accessible to all of the threads. Protect via synchronization.

- ## Restrictions

  - Restrict asynchronous signal handlers and cancellation
  - Use fork() handlers and cancellation handlers

Previous slide | Next slide | Back to first slide | View graphic version