what is deadlock ?Differentiate two types of resources ?, Basic Computer Science

Assignment Help:
• A set of process is in a deadlock state if each process in the group is waiting for an event that can be caused by only another process in the set. In other words, each member of the group of deadlock processes is waiting for a resource that can be released only by a deadlock process. Not any of the processes can run, none of them can release any resources, and not any of them can be awakened. It is significant to note that the number of processes and the number and kind of resources possessed and requested are unimportant.
• The simplest instance of deadlock is where process 1 has been allocated non-shareable resources A, say, a tap drive, and process 2 has be owed non-sharable resource B, say, a printer. At present, if it turns out that process 1 needs resource B (printer) to proceed and process 2 needs resource A (the tape drive) to proceed and these are the only two processes in the system, each one is blocked the other and all valuable work in the system stops. This state is termed deadlock. The system is in deadlock state since each process holds a resource being requested by the other process neither process is willing to release the resource it holds.
• The resources may be either physical or logical. Instances of physical resources are Printers, Tape Drivers, Memory Space, and CPU Cycles. Instances of logical resources are Files, Semaphores, and Monitors.

• Preemptable and Nonpreemptable Resources
Resources come in two types: preemptable and nonpreemptable.
A preemptable resource is one that can be taken away from the process with no ill effects. Memory is an instance of a preemptable resource. Alternatively, a nonpreemptable resource is one that cannot be taken away from process (with no causing ill effect). For instance, CD resources are not preemptable at an arbitrary instant.
Reallocating resources can determine deadlocks that involve preemptable resources. Deadlocks that occupy nonpreemptable resources are hard to deal with.

Related Discussions:- what is deadlock ?Differentiate two types of resources ?

Define Multilevel Queue Scheduling?, • A multilevel queue scheduling algori...

• A multilevel queue scheduling algorithm divides the ready queue in several separate queues, for example • In a multilevel queue scheduling processes are lastingly assigned to one

How to set up the location (e.g. plaza, how to set up the location (e.g. pl...

how to set up the location (e.g. plaza, hall of fame, lecture theater or etc.) and services that will be used during the exhibition; devices needed; and finally produced a compreh

Optical fibres, Optical Fibres: Coaxial cables have limitations such a...

Optical Fibres: Coaxial cables have limitations such as broadband transmission medium which can be overcome by the use of optical fibres. Optical fibres carry light waves (rep

Explain the protection features of ms access, Question 1 Explain the pr...

Question 1 Explain the protection features of MS Access? 2 What is Query Parameter? 3 What are the steps to be taken for improving performance of Microsoft Access database? 4 W

Explain web cache, To satisfy client needs through proxy server and not thr...

To satisfy client needs through proxy server and not through main server, as some other user have already accessed that file and its copied to the proxy server, so next time a user

Java programming, what are the phases of oo progarmming or java?

what are the phases of oo progarmming or java?

Which port does FTP uses, Why is it called out of band protocol? A1) FTP us...

Why is it called out of band protocol? A1) FTP uses port 20 and port 21; port 20 is used for data connection, whereas port 21 is used for control connection. FTP is known as out-of

Define stocktaking, QUESTION (i) Define each of the following terms: ...

QUESTION (i) Define each of the following terms: a) Book trade catalogue b) Stocktaking c) Ephemera d) Contracting out e) Special library (ii) Discuss the adv

Central processing unit, Central Processing Unit Microprocessor Th...

Central Processing Unit Microprocessor The microprocessor is an important component in the CPU. It is the unit which processes the instructions depending on its capability

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd