0% found this document useful (0 votes)
20 views2 pages

Process and Job Control System Call

process and job scheduling

Uploaded by

shivamteli63
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Process and Job Control System Call

process and job scheduling

Uploaded by

shivamteli63
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PROCESS AND JOB CONTROL SYSTEM CALL

A running program needs to be able to halt its execution either normally (end) or
abnormally (abort). If the program discovers an error in its input and wants to
terminate
abnormally, it may also want to define an error level.
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.

FILE MANAGEMENT SYSTEM CALL


System calls for file management handle creating, deleting, and managing files
and directories. To work with a file, we need to create it (providing its name and
attributes), open it, and perform actions like reading, writing, or repositioning
within the file. After use, the file must be closed. Directories, if present, require
similar operations. Attributes like file name, type, protection codes, and size can
be retrieved or modified using specific system calls. Some systems also offer
additional functions, like moving or copying files, for more advanced file
management.

DEVICE MANAGEMENT SYSTEM CALL


Devices in a system are managed similarly to files, as they can be treated like
virtual files. If there are multiple users of the system however we must first
request the device to ensure that we have exclusive use of it. After we are
finished with the device, we must release it. These functions are similar to the
open/close system calls for files. Once, the device has been requested we can
read, write and reposition the device just as with files. In fact the similarity
between input/output devices and files is so great that many operating systems
merge the two into a combined file/device structure. In this case input/output
devices are identified by special file names.

COMMUNICATION SYSTEM CALLS


Communication system calls allow different processes to exchange data or
coordinate with each other. There are two main models for inter-process
communication (IPC):
1. Message-Passing Model: In this model, processes communicate by
sending and receiving messages through a common mailbox or
communication channel. Each process sends a message to the mailbox,
and the receiving process retrieves the message. This is useful when
processes are running on different systems or need to communicate in a
controlled manner.
2. Shared Memory Model: In this model, processes communicate by
accessing the same region of memory. One process creates a shared
memory segment, and other processes can access it to read or write data.
This allows fast communication since processes can directly read and write
to the shared memory space. However, it requires proper synchronization
to avoid conflicts.

You might also like