what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES???
Answer Posted / 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 |
Post New Answer View All Answers
What does %p mean c?
Why should I use standard library functions instead of writing my own?
What are linker error?
If errno contains a nonzero number, is there an error?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain what is the concatenation operator?
Does c have class?
What does stand for?
Write program to remove duplicate in an array?
How does sizeof know array size?
Should I learn data structures in c or python?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Is null equal to 0 in sql?
How to declare pointer variables?
Explain the difference between null pointer and void pointer.