Explain kill() and its possible return values.
There are four possible results from this call: ‘kill()’ returns 0. This implies that a process exists with the given PID, and the system would allow you to... Read more »
There are four possible results from this call: ‘kill()’ returns 0. This implies that a process exists with the given PID, and the system would allow you to... Read more »
With the help of kill command we can terminate the process. Syntax: kill pid Kill 0 - kills all processes in your system except the login shell. Read more »
Yes, it stands for ‘disk usage’. With the help of this command you can find the disk capacity and free space of the disk. Read more »
It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user. Read more »
cmp - Compares two files byte by byte and displays the first mismatch diff - tells the changes to be made to make the files identical Read more »
‘grep’ is a pattern search command. It searches for the pattern, specified in the command line with appropriate option, in a file(s). Syntax : grep Example :... Read more »
Make file is a utility in Unix to help compile large programs. It helps by only compiling the portion of the program that has been changed. Read more »
A UNIX system has essentially three main layers: . The hardware . The operating system kernel . The user-level programs The kernel hides the system’s hardware... Read more »
Every file has following attributes: owner’s user ID ( 16 bit integer ) owner’s group ID ( 16 bit integer ) File access mode word ‘r w x -r w x- r w x’ (user... Read more »
System calls Description fork() To create a new process exec() To execute a new program... Read more »
Swapping: Whole process is moved from the swap device to the main memory for execution. Process size must be less than or equal to the available main memory. It... Read more »
It decides which process should reside in the main memory, Manages the parts of the virtual address space of a process which is non-core resident, Monitors the available... Read more »
Kernel follows Round Robin scheme choosing a swap device among the multiple swap devices in Unix System V. Read more »
A Region is a continuous area of a process’s address space (such as text, data and stack). The kernel in a ‘Region Table’ that is local to the process maintains... Read more »
This contains the private data that is manipulated only by the Kernel. This is local to the Process, i.e. each process is allocated a u-area. Read more »
The swapper is the only process that swaps the processes. The Swapper operates only in the Kernel mode and it does not uses System calls instead it uses internal... Read more »
Zombie process: They do not take any up physical memory. Processes locked in memories that are updating the region of the process. Kernel swaps only the sleeping... Read more »
All processes in the main memory are asleep. All ‘ready-to-run’ processes are swapped out. There is no space in the swap device for the new incoming process... Read more »
Memory architecture must based on Pages, The machine must support the ‘restartable’ instructions. Read more »
It’s the nature of the processes that they refer only to the small subset of the total data space of the process. i.e. the process frequently calls the same subroutines... Read more »