answersLogoWhite

0


Best Answer

ans :NO

because as we know that for deadlock must have follow one of the given condition.

1. mutual exclusion:here is only single process so that no case of nonsharable resource .

2. hold and wait: here is only single process so that no wait for another process to realease the requested resource.

3. no preemption: single process so that no need to taken force fully.

4.circular wait: in single process no contain the cycle.

so that single process never enter into the deadlock state

Of course, all of the above can be true if the single process has multiple threads of execution. Those threads can be deadlocked just like processes

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

NO

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there possible deadlock in single process?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is it possible to have a deadlock involving only a single process?

no deadlock can only occur when processes access shared memory and the following conditions must be met: -mutual exclusion -hold and wait -no preemption -circular wait. As soon as any of the 4 conditions fail,no deadlock. For example there cannot be circular wait for the case of one process.Who is waiting for who?The single process have access to all the available ressources.


Is deadlock a program or process?

It is a process... when a cant be processed


What causes Deadlock?

A set of processes is deadlock if each process in the set is waiting for an event that only another process in the set can cause.


What is a readers writers problem without deadlock and starvation?

When using threads, the entire point of a reader/writer problem is to avoid deadlock and starvation. The only way to avoid deadlock or starvation without the use of semaphores is for there to be only one possible process that could run, that is one reader and one writer only.


Is it possible to occur deadlock in one process during rsource allocation?

No. This follows directly from the hold-and-wait condition. Raj Gopal Mishra (India)


What are the differences between deadlock avoidance and deadlock prevention in operating systems?

Deadlock Prevention: o Preventing deadlocks by constraining how requests for resources can be made in the system and how they are handled (system design). o The goal is to ensure that at least one of the necessary conditions for deadlock can never hold. * Deadlock Avoidance: o The system dynamically considers every request and decides whether it is safe to grant it at this point, o The system requires additional apriori information regarding the overall potential use of each resource for each process. o Allows more concurrency. Similar to the difference between a traffic light and a police officer directing traffic. * Deadlock deduction:- Often, neither avoidance nor deadlock prevention may be used. Instead deadlock detection and process restart are used by employing an algorithm that tracks resource allocation and process states, and rolls back and restarts one or more of the processes in order to remove the deadlock. Detecting a deadlock that has already occurred is easily possible since the resources that each process has locked and/or currently requested are known to the resource scheduler or OS. Detecting the possibility of a deadlock before it occurs is much more difficult and is, in fact, generally undecidable, because the halting problem can be rephrased as a deadlock scenario. However, in specific environments, using specific means of locking resources, deadlock detection may be decidable. In the general case, it is not possible to distinguish between algorithms that are merely waiting for a very unlikely set of circumstances to occur and algorithms that will never finish because of deadlock. Deadlock detection techniques include, but is not limited to, Model checking. This approach constructs a Finite State-model on which it performs a progress analysis and finds all possible terminal sets in the model. These then each represent a deadlock.


What is false deadlock?

the coordinator conculde incorrectly that a deadlock exist and kills some process --------------------------- Detecting a non existent deadlock in distributed system has been referred as false deadlock and it may occur due to communication delay.. ---->Ashok Paranjothi


When a process is rolled back as a result of deadlock the difficulty arises is?

starvation


What is deadlock and explain it?

A deadlock is when both sides can't agree on a decision or when something is stuck and can't move. In technology, a deadlock is a situation where a group of processes are permanently blocked as a result of each process having acquired a subset of the resources needed for its completion and waiting for release of the remaining resources held by others in the same group-thus making it impossible for any of the process to proceed.


What are the difficulties that may arise when the process is rolled back as a result of deadlock?

starvation


What is the difference between deadlock preventation and dead lock detection?

The difference is exactly what you have just stated: deadlock prevention is used to stop deadlocks before they happen (to prevent them), while deadlock detection is used to figure out when a process has deadlocked (to detect it).


What is difference between starvation and deadlock in os?

DEADLOCK:1) Deadlock process is permanently blocked because the required resource never becomes available.2) The resource under contention is not in continuous use.STARVATION:1) In starvation, it is not certain that a process will ever get the requested resources.2) the resource under contention is in continuous use.