what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES???

Answer Posted / sachin dohre

Working of Semaphore is Atomic i.e till semaphore released
no change in shared memory could occur,, while in case of
variables it could be changed while context switching

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a string.

631


What is the heap?

681


What are global variables and how do you declare them?

610


What is a dynamic array in c?

587


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1425






what are enumerations in C

718


regarding pointers concept

1564


What is f'n in math?

612


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

640


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1853


Simplify the program segment if X = B then C ← true else C ← false

2577


What is meant by int main ()?

714


What does %c do in c?

578


how we can make 3d venturing graphics on outer interface

3994


What are the disadvantages of a shell structure?

686