10,421 views

3 Answers

Best answer
59 votes
59 votes

When final result depends on ordering of processes it is called Race condition.
Speed of processes corresponds to ordering of processes.

selected by
2 votes
2 votes
Race condition is like a family of n members(processes)

Each family member is sharing food(resources) which is present in Kitchen(Critical section)

Now the condition is one member can enter the kitchen at a time,

but all the persons need to eat food to stay alive.

So Race condition is when the state of a system depends on participating processes.

It is called race condition because processes need resources and they are sharing these resources, so they are like in a race to enter the Critical section(kitchen) to eat food.(having acquired the resources).

Now one important thing is after eating food, you have to excrete(There is some mechanism through with excreted food is converted again into fresh food by an algorithm)

This operation is known as Releasing all the resources once you get out of the critical section.
0 votes
0 votes
B . Because in this condition they both race to take the job first and this completely depends on their completion of time
Answer:

Related questions

14.2k
views
4 answers
19 votes
Kathleen asked Sep 25, 2014
14,218 views
A counting semaphore was initialized to $10$. Then $6 P$ (wait) operations and $4V$ (signal) operations were completed on this semaphore. The resulting value of the semaphore is$0$8$10$12$
4.9k
views
4 answers
18 votes
Kathleen asked Sep 25, 2014
4,904 views
Which of the following is an example of a spooled device?The terminal used to enter the input data for the C program being executedAn output device used to ... in a virtual storage systemThe swapping area on a disk used by the swapper
20.0k
views
9 answers
47 votes
Kathleen asked Sep 25, 2014
19,952 views
If an instruction takes $i$ microseconds and a page fault takes an additional $j$ microseconds, the effective instruction time if on the average a page fault occurs every $k$ instruction is ... $({i+j})\times {k}$
11.2k
views
8 answers
33 votes
Kathleen asked Sep 25, 2014
11,204 views
Which normal form is considered adequate for normal relational database design?$2NF$5NF$4NF$3NF$