top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the meaning of thread safe code in context of OS?

0 votes
348 views
What is the meaning of thread safe code in context of OS?
posted Jun 21, 2014 by Amit Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

In Multi-thread program, race condition can occur when at least two or more threads try to access same resource at the same time. Multiple thread synchronization methods exist like mutex, conditional variable, semaphore etc.

If critical section is being accessed in a synchronized or control manner the it is known as thread safe.

OS takes care of its own implementation and user or programmer can use utilities or methods provided by OS to make their program thread safe.

answer Jun 21, 2014 by Rupam
Similar Questions
...