OSY MSBTE CHP2
OSY MSBTE CHP2
OSY MSBTE CHP2
• Process management
• Main memory management
• File management
• I/O system management
• Secondary storage management
1. Process management
2. Main memory management
3. File management
4. I/O system management
5. Secondary storage management
1.Process Management:
A program is a set of instructions. When CPU is allocated to a Jprogram, it can start its
execution. A program in execution is a process. A word processing program run by a
user on a PC is a process. A process needs various system resources including CPU
time, memory, files and I/O devices to complete the job execution. These resources can
be given to the process when it is created or allocated to it while it is running. The
operating system responsible for the following activities in Connection with process
management:
Input / Output device management provides an environment for the better interaction
between system and the I / O device. To interact with I/O devices in an effective manner,
the operating system uses some special programs known as device driver. The device
drivers take the data that operating system has defined as a file and then translate them
into streams of bits or a series of laser pulses.
• end, abort
• load, execute
• create process, terminate process
• wait for time
• wait event, signal event
• allocate and free memory
I. Memory Management
II. File Management
• Keeping track of which parts of memory are currently being used and by whom.
• Allocating and deallocating memory space as needed.
• Managing swap spaces, which store inactive pages of memory.
• Implementing policies for memory allocation.
• A process or job executing one program may want to load and execute another
program. This allows the control card interpreter to execute program as directly by the
control cards of the user job. If we create a new job or process, we should able to
control its execution.
• We may also want to terminate a job or process that we created (terminate process). If
we find that it is incorrect or no longer needed we need waiting time to finish execution
(wait time). Another set of system calls are helpful in debugging a program
a. End, Abort
b. Load, Execute
2.File Management
• We can identify several common system calls dealing with files. We first need to be able
to create and delete files such a system call requires the name of the file and perhaps
some of its attributes.
• Once, the file is created, we need to open it and use it. We may also read, write and
reposition. Finally we need to close the file, indicating that we are no longer using it.
c. Create directory.
3. Information Maintenance
• Many system calls exist simply for the purpose of transferring information between the
user program and the operating system. For example most systems have a system call
to return the current time and date.
• In addition the operating system keeps information about all of its Jobs and processes
and there are system calls to access this Information. Generally, there are also calls to
reset it.
4. Communication
a. Establish a connection.
c. Terminate a connection
1. *Enlist the operating system tools. Explain any two in detail
• User Management
• Security policy
• Device Management
• Performance Monitor
• Task Scheduler
A) User management:
I. User management includes everything from creating a user to Deleting a user on your
system. User management can be done In three ways on a Linux system.
II. Command line tools include commands like useradd, userdel, Usermod, passwd, etc.
These are mostly used by the server Administrators.
c "<userName>" <userName>
Syntax: useradd -D
B) Device Management:
Example: ls –l /dev
Above example gives the list of device file from kernel. Udev supplies a dynamic device
directory containing only the nodes for devices which are connected to the system. It
creates or removes the device node files in the /dev directory.
2. *Explain the use of following OS tools:
1. Used to automate the execution of programs, scripts, and various tasks at specific
intervals or specific events.
2. Used to select the next jobs to be admitted into the system and the next process to run.
3. Schedules tasks on CPU. Which task to run first, which has high priority, which has low
latency is decided by schedulers
4. Schedulers aim to provide fair access to system resources among competing
processes or users.
v) User Management:
Primary-Memory or Main-Memory is a large array of words or bytes. Each word or byte has
its own address. Main-memory provides storage that can be access directly by the CPU.
That is to say for a program to be executed, it must in the main memory. The major activities
of an operating in regard to memory-management are:
• Keep track of which part of memory are currently being used and by whom.
• Decide which process are loaded into memory when memory space becomes available
• Allocate and De-allocate memory space as needed.
Secondary-Storage Management:
Systems have several levels of storage, including primary storage, secondary storage and
cache storage. Instructions and data must be placed in primary storage or cache to be
referenced by a running program. Because main memory is too small to accommodate all
data and programs, and its data are lost when power is lost, the computer system must
provide secondary storage to back up main memory. Secondary storage consists of tapes,
Disks, and other media designed to hold information that will eventually be accessed in
primary storage (primary, secondary, cache) is ordinarily divided into bytes or words
consisting of a fixed number of bytes. Each location in storage has an address; the set of all
addresses available to a program is called an address space. The three major activities of
an operating system in regard to secondary storage management are:
Ans. System Calls: System calls are programming interface to the services provided by the
operating system. A system call is a way for programs to interact with the operating system.
System calls provide an essential interface between a process and the operating system.