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 ?

Uninformed search strategies, Uninformed Search Strategies: To be able ...

Uninformed Search Strategies: To be able to undertake a regular search, our entire agent ought to know is the starting state, the possible operators and how to check whether th

Computerised systems, Computerised Systems : You would have realized by no...

Computerised Systems : You would have realized by now that computing systems are most useful for manipulating information. Any organisation and management of information basically

Artificial intelligence, Artificial Intelligence Artificial Intelligen...

Artificial Intelligence Artificial Intelligence is difficult science to explain, as it has fuzzy borders with  computer science, mathematics,  philosophy, physics,  psychology

What is Router. Explain Network Router, A router is a device which has play...

A router is a device which has played an important role in the development and existence of the Internet. Routers are designed to transmit data from other network users to specific

ToDoMenu, In this assignment, you should create a class called ToDoMenu whi...

In this assignment, you should create a class called ToDoMenu which has a main method that contains the code that implements a command-line menu for managing a collection of ToDoIt

Web browser, Web Browser:   A Web browser is software application that ...

Web Browser:   A Web browser is software application that enables you to find, retrieve, and display information available on the World Wide Web (WWW). Browser also allows you

Operating system, Operating System: Operating  System is the software ...

Operating System: Operating  System is the software that manages all the computers' resources to optimize its performance provides common services for efficient execution of v

Data structures, let me know if you can do this assignment and how long it ...

let me know if you can do this assignment and how long it takes

Analogue to digital converter, Analogue to digital converter: In an ADC...

Analogue to digital converter: In an ADC a range of input values must correspond to a unique digital word.  The type of code used depends on the system but here only binary cod

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