Skip to content
MCQtimes.com
GK
Pakistan Studies
Current Affairs
Islamic Studies
English
MCQtimes.com
Toggle Menu
OS Processes
Home
/
Computer Science
/
Operating System
/
OS Processes
- Page 2
Show/Hide Answers
OS Processes
What is the degree of multiprogramming?
the number of processes executed per unit time
the number of processes in the ready queue
the number of processes in the I/O queue
the number of processes in memory
Multiprogramming means the number of processes are in the ready states. To increase utilization of CPU, Multiprogramming is one of the most important abilities of OS. Generally, a single process cannot use CPU or I/O at all time, whenever CPU or I/O is available another process can use it. By doing this CPU utilization is increased.
Author:
rikazzz
Comment
OS Processes
The address of the next instruction to be executed by the current process is provided by the __________
CPU registers
Program counter
Process stack
Pipe
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.
Author:
rikazzz
Comment
OS Processes
What is the main function of the command interpreter?
to get and execute the next user-specified command
to provide the interface between the API and application program
to handle the files in operating system
none of the mentioned
The main function of command interpreter is to get and execute the next user-specified command. Command Interpreter checks for valid command and then runs that command else it will throw an error.
Author:
rikazzz
Comment
OS Processes
A set of processes is deadlock if __________
each process is blocked and will remain so forever
each process is terminated
all processes are trying to kill each other
none of the mentioned
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.
Author:
rikazzz
Comment
OS Processes
In operating system, each process has its own __________
address space and global variables
open files
pending alarms, signals and signal handlers
all of the mentioned
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.
Author:
rikazzz
Comment
OS Processes
The context of a process in the PCB of a process does not contain __________
the value of the CPU registers
the process state
memory-management information
context switch time
The context of a process in the PCB of a process does not contain context switch time. When switching CPU from one process to another, the current context of the process needs to be saved. It includes values of the CPU registers, process states, memory-management information.
Author:
rikazzz
Comment
OS Processes
In Unix, Which system call creates the new process?
fork
create
new
none of the mentioned
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.
Author:
rikazzz
Comment
OS Processes
A process stack does not contain __________
Function parameters
Local variables
Return addresses
PID of child process
Process stack contains Function parameters, Local variables and Return address. It does not contain the PID of child process.
Author:
rikazzz
Comment
OS Processes
To access the services of operating system, the interface is provided by the ___________
System calls
API
Library
Assembly instructions
To access services of the Operating System an interface is provided by the System Calls. Generally, these are functions written in C and C++. Open, Close, Read, Write are some of most prominently used system calls.
Author:
rikazzz
Comment
OS Processes
The OS X has ____________
monolithic kernel
hybrid kernel
microkernel
monolithic kernel with modules
OS X has a hybrid kernel. Hybrid kernel is a combination of two different kernels. OS X is developed by Apple and originally it is known as Mac OS X.
Author:
rikazzz
Comment
Page navigation
Previous Page
Previous
1
2
3
4
5
Next Page
Next
Go to Page
Light
Dark
GK
Pakistan Studies
Current Affairs
Islamic Studies
English