What is Concurrency? Expain with example Deadlock and
Starvation?
Answer Posted / rajdeo kumar vadhwa
concurrency:-
when two processes want to acquire the same resource.
Deadlock:-
Deadlock is a condition when two processes (A,B)require a
single resource at a moment then deadlock condition occurred.
example:
suppose two process A,B require resource 'R' for accessing
and that time process A and B both generate flag 1 for
acquire the resource in this situation no one can access
that resource immediately then deadlock condition occurred.
Starvation:
This is mostly happens in time sharing systems in which the
process which requires less time slot is waiting for the
large process to finish and to release the resources, but
the large process holding the resources for long time
(almost for forever) and the process that requires small
time slot goes on waiting. Such situation is starvation for
small process.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
File which stores the DNS configuration at client side?
Does dual boot slow down pc?
How can a ddr1 ram be identified from a ddr2 ram module physically?
How do you format a pc?
What is external fragmentation?
What is the difference between tty and pts?
How much ram do I need for excel?
What is the difference between process and program?
Can you please explain the difference between load-time dynamic linking and run-time dynamic linking?
What are the steps involved in following a particular instruction given by the cpu?
What is significance of semaphores? What are the different types of semaphores?
What are banks in reference to ram?
What is a monitor?
What is load sharing in operating system (os)?
What is belady's anomaly?