what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES???
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / test
semaphores helps is a varible which is used to protect the shared data .hence avoiding the coruption of data by the threads acting simultaniously..
| Is This Answer Correct ? | 7 Yes | 4 No |
program for validity of triangle from 3 side
difference between spiral and waterfall model
What is the right way to use errno?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Write a program to generate the Fibinocci Series
Are pointers integer?
How can you determine the size of an allocated portion of memory?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack
What is the difference between array and pointer in c?
what is develop in c language
What does 1f stand for?