Thread synchronization

  • Process or thread synchronization is a mechanism that deals with the synchronization of processes or threads, that is controlling the execution of one process or thread by another process or thread.
  • It controls the execution of processes or threads in a such way that no two processes or threads can have access to the same shared data or resources concurrently to ensure that consistent results are produced.
  • Threads should be synchronized to avoid critical resource use conflicts.
  • It is a solution to critical section problem or a race condition problem.

Few of the synchronization technique used by the linux kernel are:

  • Mutex
  • Semaphore
  • Spin locks
  • Condition variables

Need of Synchronization:

  • When multiple processes or threads execute concurrently sharing some system resources.
  • To avoid any loss or inconsistent result.

Problem without synchronization:

Relevant Posts:



Categories: Operating system (OS)

7 replies

Trackbacks

  1. Introduction to Kernel - Tech Access Info
  2. Pros and Cons of Thread - Tech Access
  3. Index of Operating System - Tech Access
  4. Race Condition - Tech Access
  5. Critical Section(CS) - Tech Access
  6. Comparison- Mutex and Semaphore - Tech Access
  7. Condition Variables - Tech Access

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: