top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

0 votes
54 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...