A. Address space and global variables
B. Open files
C. Pending alarms, signals and signal handlers
D. All of the mentioned
Explanation: In Operating Systems, each process has its own address space which contains code, data, stack and heap segments or sections. Each process also has a list of files which is opened by the process as well as all pending alarms, signals and various signal handlers.
A. Fork
B. Create
C. New
D. None of the mentioned
Explanation: In UNIX, a new process is created by fork() system call. fork() system call returns a process ID which is generally the process id of the child process created.
A. Uniprogramming systems
B. Uniprocessing systems
C. Unitasking systems
D. None of the mentioned
Explanation: Those systems which allow more than one process execution at a time, are called multiprocessing systems. Uniprocessing means only one processor.
A. Normal exit
B. Fatal error
C. Killed by another process
D. All of the mentioned
Explanation: A process can be terminated normally by completing its task or because of fatal error or killed by another process or forcefully killed by a user. When the process completes its task without any error then it exits normally. The process may exit abnormally because of the occurrence of fatal error while it is running. The process can be killed or terminated forcefully by another process.
A. When process is scheduled to run after some execution
B. When process is unable to run until some task has been completed
C. When process is using the cpu
D. None of the mentioned
Explanation: Ready state of the process means process has all necessary resources which are required for execution of that process when CPU is allocated. Process is ready for execution but waiting for the CPU to be allocated.
A. Each process is blocked and will remain so forever
B. Each process is terminated
C. All processes are trying to kill each other
D. None of the mentioned
Explanation: Deadlock is a situation which occurs because process A is waiting for one resource and holds another resource (blocking resource). At the same time another process B demands blocking a resource as it is already held by a process A, process B is waiting state unless and until process A releases occupied resource.
A. Function parameters
B. Local variables
C. Return addresses
D. Pid of child process
Explanation: Process stack contains Function parameters, Local variables and Return address. It does not contain the PID of child process.
A. Wait
B. Exit
C. Fork
D. Get
Explanation: wait() system call is used by the parent process to determine termination of child process. The parent process uses wait() system call and gets the exit status of the child process as well as the pid of the child process which is terminated.
A. Cpu registers
B. Program counter
C. Process stack
D. Pipe
Explanation: The address of the next instruction to be executed by the current process is provided by the Program Counter. After every instruction is executed, the Program Counter is incremented by 1 i.e. address of the next instruction to be executed. CPU fetches instruction from the address denoted by Program Counter and execute it.