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


Please Help Members By Posting Answers For Below Questions

How do I find recently downloaded files?

557


How to stop a long running thread?

607


What does a 64 bit processor mean?

538


Explain IPC?

613


Explain any program using Semaphores.

602






When does thrashing occur?

547


Do 64 bit applications use more memory?

510


Stable storage cannot be implemented. (A) Explain why it cannot be. (B) Explain how database system deal with database applications

1702


What are starvation and aging?

627


What are deadlock prevention techniques?

600


What is the difference between ie and edge?

523


Tell me the difference between yielding and sleeping?

542


Can a laptop have 32gb of ram?

509


How to stop running thread?

651


Different types of real-time scheduling?

579