New Page 1
Welcome to basicsofcomputer.com
 

Share This Free Knowledge With Your Friends:

Home » Deadlocks » Resources in Operating System

Resources in Operating System:

A resource is an object that is used by a process. It can be a piece of hardware such as:

  • Tape drive
     
  • Disk drive
     
  • Printer

A resource can be a piece of information such as:

  • File
     
  • A record within a file
     
  • A shared variable
     
  • A critical section

A computer typically has many different resources. In some cases, there maybe many instances of a resource of a given type. A process needing one of these resources can use any one of them. In other cases there may be only one instance of a resource.

Types of Resources:

Resources come in two types: preemptible and nonpreemptible. A preemptible resource is one that can be allocated to a given process for a period of time. Then it can be allocated to another process. Then it can be reallocated to the first process without any negative effects. Examples of preemptible resources include:

  • Memory
     
  • Buffers
     
  • CPU
     
  • Array processor

A nonpreemptible resource cannot be taken from one process and given to another without side effects. One example is a printer. A printer cannot be take away from one process and given to another process in the middle of a print job. Deadlocks usually involve nonpreemptible resources. The usual sequence of events that occur as a resource is used is:

1. Request the resource: One of two things can happen when a resource is requested. The request can be granted immediately if it is available. The request can be postponed or blocked until a later time.

2. Use the resource: Once the resource has been acquired, it can be used.

3. Release the resource: When the process no longer needs the resource, it releases it. Usually it is released as soon as possible.

Relevant Articles:

Introduction to Deadlocks
Resources in Operating System
Methods for Handling Deadlocks
Deadlock Avoidance in Operating System
Deadlock Characterization in Operating System
Deadlock Detection/Algorithm/Example in Operating System
Deadlock Recovery/Methods/Algorithms in Operating System
 
New Page 1

Basic Computer Science

   
» The Age of Information

» Types of Computer and Digital Age

» Input and Output Devices

» Storage Devices Of Computer

» Central Processing Unit

» Software: The Power Behind The Power

» Data Communication and Computer Networks

» The Nature Of Information

» The System Theory

» Transaction Processing System (TPS) and Management Information System (MIS)

» Decision Support System (DSS) and Executive Support System (ESS)

» Expert System (ES) and Office Information System (OIS)

 

Operating Systems

   
» Introduction to Operating System

» Introduction to Process Management

» Threads and CPU Scheduling

» Process Synchronization in Operating System

» Deadlocks

» Memory Management in Operating System

» Virtual Memory in Operating System

» File System Management in Operating System

» I/O and Device Management

» Security

» Linux Operating System

 

Database Management System

   
» Introduction to Database Systems

» Database System Architecture

» Database Administration and Database Development Process

» The Entity-Relationship Model

» Semantic Object Model

» Logical Database Design and Relational Data Model

» Normalization in Database

» Transformation of E-R Model into Relational Data Model

» Representing Semantic Object Model and Types of Semantic Object Model

» Physical Database Design

» Introduction to Structured Query Language (SQL)

» Implementation of Relational Database and Database Application Design

» Client Server Database Systems & Open Database Connectivity (ODBC)

 

Questions and Answers

   
» Basics of Information Technology

» Computer Architecture

» Data Communication

» Information Networks

» Fundamentals of the Internet

» Application and Uses of Computer

» Security, Copyright and The Law

» Windows Operating Systems

» Spreadsheet Software

» Process Management in CPU

» CPU Scheduling

» Process Synchronization

» Deadlocks

» Memory Management

» Database Systems

» Database System Architecture

» Database Administration and Database Development Process
 
 
New Page 1
 

Home                Dictionary                 Contact us                   About us                    Privacy policy                  Link to us                   Advertise

Copy right ©  2012