Skip to main content

Posts

Showing posts with the label Operating System

Explain Deadlock Modelling and Strategies along with an example

As stated in previous topic, in Deadlock situation, a process waits resources which are using by other process without releasing its own resources. It is therefore causes all the processes waiting and waiting for the resources of each other; hence it brings critical condition to make deadlock condition.

In this chapter, we are going to model deadlock condition by using directed graph. Here we use directed graph to show whether it is requesting resources or holding resources. And circle are used to denote process whereas rectangle refers the resources.


Above diagram shows the modelling process of deadlock, it shows requesting and holding of resources in/from a process. In the figure, A process is requesting T resource one time. In the bottom fig, A is holding T resource.


In fact, there is not solution of deadlock condition, that is why it is known as non-resolving situation. But a good programmer must be known with this fact before working on any project. S/he must be careful about th…

Define and explain Deadlock and its conditions

In Operating System, Deadlock is a non-resolving condition in which two or more competing actions are each waiting for the other to finish and thus neither ever does. However, deadlock condition must be prevented before it falls.

Basically, computer system make of resources; the resources of computer system can be categorized into different two types - Software Resources and Hardware Resources. Hardware Resources are external memory, printer, scanner etc. Software Resources are some applications, such as microsoft words, excel, adobe Photoshop etc. In the real time operation, each and every process needs resources that is why process shares the resource to complete the job mostly in multiprogramming system.

In conclusion, deadlock is only then arise if there are 2 process sharing the same resources, in which one process waits to use a resource which is using by another process whereas it itself does not release its own resource.

According to Coffman, deadlock has 4 conditions. They a…

Define Operating System. List out its types and explain services.

Generally, operating system works as an inter-mediator between computer and users. Actually, it is a group of software or applications that handles all the computer hardware and services of computer programs. Allocation of memory and controlling them is one of its basic service. In fact, Operating System can be categorized according to their processing nature and brand.

A. On the basis of processing nature, the types of OS are as follows:

Real Time OSMultitasking OSNetwork OSDistributed OSBatch Processing OS Except these five, there are also other types of operating system like, multi-processing os, multi-programming os etc. However, these are the basic types of Operating System
B. On the basis of brand, the types of OS are categorized as below: Windows OSIphone Operating System (IOS)Android OSMAC OSLinux OSUnix OS These six operating systems are also common types of operating system now available or used in IT field. Among them, IOS, and Android are mostly used as operating system of S…