CS604 – Operating Systems: Midterm Important MCQs (281 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS604 Course Page · CS604 Subjective Pack (59 Q&As)
-
A time sharing system is
Topic: Introduction & Types of Operating Systems
- Multi user
- Multi tasking
- Interactive
- All of these ✓ Correct answer
-
The basic purpose of ______ is to help the users to utilize the hardware resources for completing different tasks in a simplified manner
Topic: Introduction & Types of Operating Systems
- Operating system ✓ Correct answer
- Application software
- All Software
- All of the given
-
The major advantage of multi-programming system is
Topic: Introduction & Types of Operating Systems
- More than one jobs can be processed at a given time
- CPU utilization can be increased
- Jobs can be completed quickly
- All of the options are correct ✓ Correct answer
-
The main characteristics of a Real time system is
Topic: Introduction & Types of Operating Systems
- Efficiency
- Large Virtual Memory
- Large secondary storage device
- Usability ✓ Correct answer
-
The ______ defines an operating system as a bridge between computer user and hardware for a user's convenience.
Topic: Introduction & Types of Operating Systems
- System-view
- Bottom-up view
- Top-down view ✓ Correct answer
- Layered-view
-
OS helps manages the following except
Topic: Introduction & Types of Operating Systems
- Application software
- Memory
- Virtual memory
- Bus speed of the system ✓ Correct answer
-
Batch programs are usually ______ programs.
Topic: Introduction & Types of Operating Systems
- Interactive
- Non-interactive ✓ Correct answer
- Foreground
- Preemptive
-
In which of the following system multiple user are allowed to used the computer simultaneously?
Topic: Introduction & Types of Operating Systems
- Single user
- Two users
- Three users
- Multi users ✓ Correct answer
-
A ______ system has well defined, fixed time constraints, and if the system does not produce output for an input within the time constraints, the system will fail.
Topic: Introduction & Types of Operating Systems
- Android
- Limited
- Operating
- Real-time ✓ Correct answer
-
Mach, MacOS X Server, QNX, OS/2 and Windows NT are examples of OS Based on ______ .
Topic: Introduction & Types of Operating Systems
- Layered
- Micro Kernal ✓ Correct answer
- Virtual Machine
- None of The Given
-
______ determines How to do something.
Topic: Introduction & Types of Operating Systems
- Mechanism ✓ Correct answer
- Policy
- Mechanism and Policy:
- None of the given
-
The Operating system is a layer of software between ______ and ______ .
Topic: Introduction & Types of Operating Systems
- Dos, Windows
- Kernel, hardware
- Hardware, software application ✓ Correct answer
- Windows, Kernel
-
The address generated by the CPU, after any indexing or other addressing-mode arithmetic, is called a ______ address, and the address it gets translated to by the MMU is called a ______ address.
Topic: Introduction & Types of Operating Systems
- Virtual, physical ✓ Correct answer
- Hexadecimal, Binary,
- Valid, invalid
- Physical, Virtual
-
The bottom layer in the layered approach of Operating System is ______
Topic: Introduction & Types of Operating Systems
- User interface
- Hardware ✓ Correct answer
- Kernel
- None of the given options
-
Which part of the computer system helps in managing the file and memory management system?
Topic: Introduction & Types of Operating Systems
- Operating System ✓ Correct answer
- Device Drivers
- Application Software
- Hardware
-
______ view is that operating system is a resource manager.
Topic: Introduction & Types of Operating Systems
- Down-up
- bottom-up ✓ Correct answer
- Top-down
- Single-up
-
Consider a scenario of CPU protection, ______ is added to the operating system in order to detect and avoid loop in a user program.
Topic: Introduction & Types of Operating Systems
- Timer ✓ Correct answer
- Base and limit registers
- I/O
- Turning interrupt enable off
-
The situation in which no context switching is required in multiprocessor systems is referred to as ______ .
Topic: Introduction & Types of Operating Systems
- Busy Waiting
- Spin lock ✓ Correct answer
- Interrupt
- Scheduler
-
Which of the following is NOT a Hardware Resource.
Topic: Introduction & Types of Operating Systems
- CPU
- OS ✓ Correct answer
- I/O Devices
- Memory
-
Managing Secondary Storage Involves all of the Following except
Topic: Introduction & Types of Operating Systems
- Allocating storage space
- Deallocating Storage
- Prevent Overwriting ✓ Correct answer
- Insure integrity of shared data
-
The Purpose of Operating System is to generate Executable Programs and to ______ them.
Topic: Introduction & Types of Operating Systems
- Regenerate
- Execute ✓ Correct answer
- Store
- Remove
-
Which of the Following is not an Operating System.
Topic: Introduction & Types of Operating Systems
- Linux
- Unix
- Datebase ✓ Correct answer
- Windows Xp
-
An operating system is easily portable between varying hardware designs in ______ structural approach.
Topic: Introduction & Types of Operating Systems
- Layered
- Micro kernels ✓ Correct answer
- Virtual Machines
- Simple
-
______ determines What will be done.
Topic: Introduction & Types of Operating Systems
- Mechanism
- Policy ✓ Correct answer
- Mechanism and Policy
- None of the given
-
Which of the following is not True for a time-sharing system?
Topic: Introduction & Types of Operating Systems
- Interactive
- CPU sit idle when a process requires I/O operation
- Multi user
- Rigid time requirements ✓ Correct answer
-
Which is not basic computing hardware?
Topic: Introduction & Types of Operating Systems
- CPU
- Memory
- Compact Disc ✓ Correct answer
- I/O Device
-
Secondary Storage memory devices have ______ memory.
Topic: Introduction & Types of Operating Systems
- Volatile
- Permanent and non-volatile ✓ Correct answer
- Temporary
- None of the options
-
POSIX is a standard developed by ______ .
Topic: Introduction & Types of Operating Systems
- ISO
- ANSI
- IEEE ✓ Correct answer
- ACM
-
Rather than maximizing CPU utilization and use of peripheral devices, ______ systems are used for maximizing user convenience and responsiveness.
Topic: Introduction & Types of Operating Systems
- Single-user ✓ Correct answer
- Multi-user
- Batch
- Time-sharing
-
Database, Complier, Video games are examples of ______ .
Topic: Introduction & Types of Operating Systems
- Hardware
- Application ✓ Correct answer
- Operating System
- Users
-
I MB or 1 megabyte is equivalent to ______
Topic: Introduction & Types of Operating Systems
- 1024 bytes
- 1024 x 1024 bytes ✓ Correct answer
- 1024 x 1024 x 1024 bytes
- 1000000 bytes
-
In hardware multiprocessor environment two instructions are executed which are swap and Test And Set.
Topic: Introduction & Types of Operating Systems
- By force
- Manually
- Atomically ✓ Correct answer
- Automatically
-
Main memory is ______ memory.
Topic: Introduction & Types of Operating Systems
- Virtual
- Volatile ✓ Correct answer
- Permanent
- Non-volatile
-
An operating system is a/an ______ that manages the execution of user programs to prevent errors and improper use of a computer.
Topic: Introduction & Types of Operating Systems
- Disk
- Application program
- Control Program ✓ Correct answer
- physical unit
-
Delay is not allowed in which type of system?
Topic: Introduction & Types of Operating Systems
- Single User System
- Real time system ✓ Correct answer
- Batch System
- Time sharing System
-
A ______ system collects physically separate, possibly heterogeneous, systems into a single coherent system, providing the user with access to the various resources that the system maintains.
Topic: Introduction & Types of Operating Systems
- Distributed ✓ Correct answer
- Real-time
- Single user
- Time-sharing
-
The process ID returned to the child process after successful fork system call execution is ______.
Topic: OS Components, Services & Structures
- 0 ✓ Correct answer
- 1
- 2
- 3
-
The ______ system call suspends the calling process.
Topic: OS Components, Services & Structures
- fork
- wait ✓ Correct answer
- exec
- exit
-
A parent process calling ______ system call will be suspended until children process terminates.
Topic: OS Components, Services & Structures
- wait ✓ Correct answer
- fork
- exit
- exec
-
The hardware mechanism that enables a device to notify CPU is called an ______
Topic: OS Components, Services & Structures
- Interrupt ✓ Correct answer
- Signal
- Trap
- Process
-
System calls provide the interface between a ______ and the Operating system.
Topic: OS Components, Services & Structures
- Process ✓ Correct answer
- Machine
- User
- Kernel
-
This layered approach is taken to its logical conclusion in the concept of a ______ .
Topic: OS Components, Services & Structures
- Logical Machine
- None of the given
- Physical Machine
- Virtual Machine ✓ Correct answer
-
______ is used to request the OS by the process to take an I/O or initiating child process.
Topic: OS Components, Services & Structures
- System call ✓ Correct answer
- Interrupt
- Trap
- Signal
-
The kernel is a computer program that manages ______ requests from software
Topic: OS Components, Services & Structures
- Input /Output ✓ Correct answer
- Process
- Hardware
- Software
-
How many modes are supported in operating system?
Topic: OS Components, Services & Structures
- 1
- 2 ✓ Correct answer
- 3
- 4
-
The ______ approach include the ease of extending the OS.
Topic: OS Components, Services & Structures
- Monolithic Kernel
- Micro Kernel ✓ Correct answer
- Macro Kernel
- Small Kernel
-
For reading input, which of the following system call is used?
Topic: OS Components, Services & Structures
- read ✓ Correct answer
- change
- write
- None of the given options
-
A/an ______ is software generated call caused by error, or when a user request for an operating system service. OR A ______ (or an exception) is a software-generated interrupt caused either by an error (division by zero or invalid memory access) or by a user request for an operating system service.
Topic: OS Components, Services & Structures
- System call
- Trap ✓ Correct answer
- Signal
- Interrupt
-
In Layered approach of OS, Lowest Layer is known as ______ .
Topic: OS Components, Services & Structures
- Software Layer
- Hardware Layer ✓ Correct answer
- Lower Level Layer
- None of The Given
-
If the fork system call fails, it returns
Topic: OS Components, Services & Structures
- 1
- -1 ✓ Correct answer
- 2
- 0
-
A ______ enables a user process to request the operating system to execute a privileged instruction for it.
Topic: OS Components, Services & Structures
- Interrupt
- Library call
- System call
- Trap ✓ Correct answer
-
Which of the following provide interface to access the services of the operating system?
Topic: OS Components, Services & Structures
- API
- System call ✓ Correct answer
- Library call
- Assembly Instructions
-
In the layered approach of Operating Systems ______ .
Topic: OS Components, Services & Structures
- Bottom Layer(0) is the User interface
- Highest Layer(N) is the User interface ✓ Correct answer
- Bottom Layer(N) is the hardware
- Highest Layer(N) is the hardware
-
After fork() system call is made, parent and child process have their separate copy of ______ .
Topic: OS Components, Services & Structures
- Environment
- File mode creation mask
- File descriptors ✓ Correct answer
- Nice value
-
The ______ system call suspends the calling process until one of the immediate children terminate.
Topic: OS Components, Services & Structures
- Interrupt
- Trap
- Signal
- Wait ✓ Correct answer
-
While using the read/write system call which data type is used to return the size of file to buffer from file descriptor df?
Topic: OS Components, Services & Structures
- Size_Max
- piped
- FIFO
- ssize_t ✓ Correct answer
-
State of a process transits from running to ready because of ______
Topic: OS Components, Services & Structures
- I/O
- Interrupt ✓ Correct answer
- Fork()
- Scheduler dispatch
-
The write () system call may not fail for ______ reason(s).
Topic: OS Components, Services & Structures
- Valid argument ✓ Correct answer
- File size limit for process or for system would exceed
- Invalid argument
- Disk is full
-
All UNIX and LINUX systems have one thing in common which is ______
Topic: OS Components, Services & Structures
- Set of commands
- Set of instructions
- Set of text editors
- Set of system calls ✓ Correct answer
-
______ loads, verifies, and executes programs that have been translated into Java byte code.
Topic: OS Components, Services & Structures
- Java Virtual Machine ✓ Correct answer
- VMWare
- VM Solution
- VM PC
-
A process terminates by calling the ______ system call.
Topic: OS Components, Services & Structures
- wait
- fork
- exec
- exit ✓ Correct answer
-
Ali is an operating system designer. Once user requirement regarding OS is easy to debug and modify. In your opinion which one of the following OS structure Ali needs to follow?
Topic: OS Components, Services & Structures
- Virtual Machines
- Simple OS Approach
- Layered Approach ✓ Correct answer
- Micro kernels
-
The ______ system call is used to open or create a file.
Topic: OS Components, Services & Structures
- open() ✓ Correct answer
- read()
- write()
- close()
-
In UNIX/Linux, by default the standard input file is attached to the ______.
Topic: UNIX/Linux Commands, Files & Directories
- Mouse
- Keyboard ✓ Correct answer
- Light pen
- Joystick
-
Shared libraries and kernel modules are stored in ______ directory.
Topic: UNIX/Linux Commands, Files & Directories
- /bin
- /dev
- /boot
- /lib ✓ Correct answer
-
First ______ entries in Per Process File Descriptor Table are used as soon as the process is created.
Topic: UNIX/Linux Commands, Files & Directories
- 1
- 2
- 3 ✓ Correct answer
- 4
-
The manual pages can be read in Linux using ______ command.
Topic: UNIX/Linux Commands, Files & Directories
- man ✓ Correct answer
- wan
- desc
- help
-
Using ______ system, we can create a new process in Linux.
Topic: UNIX/Linux Commands, Files & Directories
- exit
- exec
- fork ✓ Correct answer
- wait
-
______ directory includes essential system boot files including the kernel image.
Topic: UNIX/Linux Commands, Files & Directories
- /bin
- /boot ✓ Correct answer
- /dev
- /etc
-
In Linux directory structure, there is ______ root directory.
Topic: UNIX/Linux Commands, Files & Directories
- 1 ✓ Correct answer
- 2
- 3
- 4
-
Linux uses ______ directory to store system configuration files.
Topic: UNIX/Linux Commands, Files & Directories
- /bin
- /dev
- /boot
- /etc ✓ Correct answer
-
______ command is used to change the directory.
Topic: UNIX/Linux Commands, Files & Directories
- ls
- mv
- cd ✓ Correct answer
- cp
-
______ commands in Linux helps to create a new directory.
Topic: UNIX/Linux Commands, Files & Directories
- cp
- mv
- mkdir ✓ Correct answer
- ls
-
Command-line interpreter is also called ______ in some operating systems.
Topic: UNIX/Linux Commands, Files & Directories
- Kernel
- Signal
- Shell ✓ Correct answer
- API
-
______ command display the status of a process.
Topic: UNIX/Linux Commands, Files & Directories
- cat
- ps ✓ Correct answer
- ls
- gcc
-
You can use the rm file1 command to ______ file1
Topic: UNIX/Linux Commands, Files & Directories
- Retrieve
- Remove ✓ Correct answer
- Make
- modify
-
The correct command for compiling C program named program.c in Linux environment is
Topic: UNIX/Linux Commands, Files & Directories
- gcc program.c -o FirstPrgram ✓ Correct answer
- gcc -o FirstProgram program.c
- gcc -z FirstProgram program.c
- gcc program.c -m FirstPrgram
-
The priority of a process can be changed using ______ command.
Topic: UNIX/Linux Commands, Files & Directories
- nice ✓ Correct answer
- grep
- cat
- cmd
-
Which of the following command is used to read data from file named academics?
Topic: UNIX/Linux Commands, Files & Directories
- con < academics
- socket > academics
- ran > academics
- cat < academics ✓ Correct answer
-
______ command gives a snapshot of the current processes.
Topic: UNIX/Linux Commands, Files & Directories
- ps ✓ Correct answer
- top
- who
- ls
-
______ command to resume the execution of a suspended job in the foreground
Topic: UNIX/Linux Commands, Files & Directories
- fg ✓ Correct answer
- bg
- jobs
- kill
-
______ commands in Linux is used to copy file
Topic: UNIX/Linux Commands, Files & Directories
- ls
- cp ✓ Correct answer
- mv
- mkdir
-
You can use the ______ command to display the status of suspended and background processes
Topic: UNIX/Linux Commands, Files & Directories
- fg
- bg
- jobs ✓ Correct answer
- kill
-
You can terminate a foreground process by pressing ______
Topic: UNIX/Linux Commands, Files & Directories
- <Ctrl-A>
- <Ctrl-C> ✓ Correct answer
- <Ctrl-Z>
- None of the given options
-
You can use the mv file1 file2 command to move ______ .
Topic: UNIX/Linux Commands, Files & Directories
- This command will not work for moving files
- file 2 to file 1
- file1 to file2 ✓ Correct answer
- This command will create a copy of file1
-
Utilities used for system administration (halt, ifconfig, fdisk, etc.) are stored in ______ directory.
Topic: UNIX/Linux Commands, Files & Directories
- /dev
- /boot
- /lib
- /sbin ✓ Correct answer
-
You can display the contents (names of files and directories) of a directory in UNIX/Linux directory structure with the ______ command.
Topic: UNIX/Linux Commands, Files & Directories
- ll
- s
- ls ✓ Correct answer
- none of the given options
-
In Unix/Linux environment Ali want to know the number of processes running on the system and their status, number of CPUs in the system and their usage, amount of main memory and its usage. Which of the following command will help in this regard?
Topic: UNIX/Linux Commands, Files & Directories
- $ ps
- $ gcc
- $ top ✓ Correct answer
- $ fifo
-
Which of the following is a correct command line for running in background?
Topic: UNIX/Linux Commands, Files & Directories
- cat code.c | grep print %
- cat code.c | grep print @
- cat code.c | grep print & ✓ Correct answer
- cat code.c | grep print #
-
As a result of <Ctrl-C>, a SIGINT signal is sent to a process. Signal number of SIGINT is ______ .
Topic: UNIX/Linux Commands, Files & Directories
- 1
- 15
- 2 ✓ Correct answer
- 9
-
Which of the following is used to show the end of file in unix?
Topic: UNIX/Linux Commands, Files & Directories
- Ctrl+A
- Ctrl+D ✓ Correct answer
- Ctrl+O
- Ctrl+E
-
The file descriptor for Standard Input (stdin) is ______ .
Topic: UNIX/Linux Commands, Files & Directories
- 0 ✓ Correct answer
- 1
- 2
- 3
-
Pipes simply used on the command line to connect the standard input of one process to the standard input of another. Which of the following syntax is correct use of command line Linux/UNIX pipes?
Topic: UNIX/Linux Commands, Files & Directories
- Cmd1 | cmd2 | ........... | cmdN ✓ Correct answer
- Cmd1 ; cmd2 ; ........... ; cmdN
- Cmd1 > cmd2 > ........... > cmdN
- None of the given
-
In Unix/Linux environment, Ayesha wants to know the complete picture of current processes in her session. Which of the following command will help her in this regard?
Topic: UNIX/Linux Commands, Files & Directories
- $ ps ✓ Correct answer
- $ top
- $ fifo
- $ gcc
-
Linux is a version of ______ operating system.
Topic: UNIX/Linux Commands, Files & Directories
- OS/2
- Windows
- Unix ✓ Correct answer
- None of the above
-
______ has a hierarchical file system structure.
Topic: UNIX/Linux Commands, Files & Directories
- DOS
- Windows
- UNIX ✓ Correct answer
- None of the given options
-
You can use the ______ command in UNIX to create a directory.
Topic: UNIX/Linux Commands, Files & Directories
- rmdir
- mkdir ✓ Correct answer
- cp
- gcc
-
Files that start with a ______ in UNIX/Linux directory structure are known as hidden files.
Topic: UNIX/Linux Commands, Files & Directories
- . (dot) ✓ Correct answer
- # ( hash )
- / (slash)
- ~ (tilt)
-
You can display all of the signals supported by your system, along with their numbers, by using the ______ command
Topic: UNIX/Linux Commands, Files & Directories
- <Ctrl-A>
- fg
- jobs
- kill -l ✓ Correct answer
-
rm and rmdir commands are used to ______ directory.
Topic: UNIX/Linux Commands, Files & Directories
- Create
- Move
- Remove ✓ Correct answer
- Modify
-
______ is a virtual directory in Linux and Unix.
Topic: UNIX/Linux Commands, Files & Directories
- /proc ✓ Correct answer
- /temp
- /ver
- /boot
-
A signal is an event generated to get attention of
Topic: UNIX/Linux Commands, Files & Directories
- Hard disk
- Process ✓ Correct answer
- Trap
- Interrupts
-
We can suspend a foreground process by pressing ______ , which sends a STOP/SUSPEND signal to the process.
Topic: UNIX/Linux Commands, Files & Directories
- Ctrl+x
- Ctrl+w
- Ctrl+z ✓ Correct answer
- Ctrl+y
-
You can use the bg command to put the current or a suspended process into the background. What is the correct syntax of bg command from the following ______ .
Topic: UNIX/Linux Commands, Files & Directories
- bg [job#]
- bg [%job_id] ✓ Correct answer
- bg [%id]
- bg [id#]
-
In UNIX/Linux, by default the standard output file is attached to the ______.
Topic: UNIX/Linux Commands, Files & Directories
- File
- Screen ✓ Correct answer
- Printer
- Scanner
-
To display all processes ______ option is used with ps command.
Topic: UNIX/Linux Commands, Files & Directories
- -1
- -e ✓ Correct answer
- -u
- -a
-
Kill command is used to terminate a process. The syntax of the command is kill [-signal] PID When executed without a signal number, the command sends the ______ signal to the process.
Topic: UNIX/Linux Commands, Files & Directories
- SIGINT
- SIGKILL
- SIGTERM ✓ Correct answer
- None of the these
-
In the results displayed by ls -l command, 5th column shows ______ .
Topic: UNIX/Linux Commands, Files & Directories
- Owner of the file
- Time last updated
- File size in bytes ✓ Correct answer
- Group of the owner
-
~symbol in the pathname ~/docs/cs604/handouts represented .
Topic: UNIX/Linux Commands, Files & Directories
- Root directory
- Child directory
- Login directory ✓ Correct answer
- Parent directory
-
To terminate a process <ctrl-c> is pressed, which signal it actually pass to process for termination?
Topic: UNIX/Linux Commands, Files & Directories
- SIGINT ✓ Correct answer
- SIGKILL
- SIGTRAP
- SIGTERM
-
The Home Directory for superuser in Linux and Unix is
Topic: UNIX/Linux Commands, Files & Directories
- /
- /home
- /root ✓ Correct answer
- None of the given
-
The files which are automatically opened by the kernel for every process for the process to read its input from and send its output and error messages are called
Topic: UNIX/Linux Commands, Files & Directories
- None of the given
- Standard File descriptors
- File descriptors
- Standard files ✓ Correct answer
-
______ command puts a foreground process into background.
Topic: UNIX/Linux Commands, Files & Directories
- fg
- bg ✓ Correct answer
- Ctrl z
- None of the given
-
The syntax for input redirection is
Topic: UNIX/Linux Commands, Files & Directories
- command < input-file ✓ Correct answer
- command > input-file
- command >= input-file
- command =< input-file
-
The syntax for output redirection is
Topic: UNIX/Linux Commands, Files & Directories
- command < output-file
- command > output-file ✓ Correct answer
- command >= output-file
- command =< output-file
-
A pathname is the list of directories separated by ______ .
Topic: UNIX/Linux Commands, Files & Directories
- #
- $
- &
- / ✓ Correct answer
-
mkdir command is used to ______ an empty directory.
Topic: UNIX/Linux Commands, Files & Directories
- Create ✓ Correct answer
- Move
- Remove
- Modify
-
In process management, some of the jobs can be suspended for some time in order to give other jobs a chance to be in execution. Which command can be used to place back a suspended program?
Topic: UNIX/Linux Commands, Files & Directories
- top
- ps
- bg
- fg ✓ Correct answer
-
A ______ is an abstract key for accessing a file.
Topic: UNIX/Linux Commands, Files & Directories
- File descriptor ✓ Correct answer
- Input Redirection
- Output Redirection
- FIFO
-
In Unix/Linux client server process communication, server process runs in the background by terminating its command line with ______ .
Topic: UNIX/Linux Commands, Files & Directories
- & ✓ Correct answer
- @
- %
- $
-
The file descriptor for Standard Output (stdout) is ______ .
Topic: UNIX/Linux Commands, Files & Directories
- 0
- 1 ✓ Correct answer
- 2
- 3
-
The file descriptor for Standard error (stderr) is ______ .
Topic: UNIX/Linux Commands, Files & Directories
- 0
- 1
- 2 ✓ Correct answer
- 3
-
The time it takes for the dispatcher to stop one process and start another running is known as the ______ .
Topic: Processes & Process Management
- dispatch latency ✓ Correct answer
- dispatch time
- stop time
- sleep time
-
______ displays information about the top processes.
Topic: Processes & Process Management
- ls
- top ✓ Correct answer
- cd
- cs
-
A Process 'A' that has finished working but its parent process has also finished its execution. In this state the process 'A' will be called as ______ process.
Topic: Processes & Process Management
- Child
- Fork
- Zombie ✓ Correct answer
- Thread
-
______ is a solution to the problem of indefinite blockage of low-priority processes.
Topic: Processes & Process Management
- Starvation
- Deadlock
- Aging ✓ Correct answer
- None of the these
-
Taking the CPU from one process and giving the CPU to another process is termed as
Topic: Processes & Process Management
- Context Switching ✓ Correct answer
- Dispatching
- Swapping
- Tracking
-
The creating process is called a ______ process while the new processes are called the ______ of that process
Topic: Processes & Process Management
- Children, Parent
- None of the given options
- Parent, children ✓ Correct answer
- Zombie, single
-
When a process opens its first file explicitly it will get descriptor number ______
Topic: Processes & Process Management
- 1
- 2
- 3 ✓ Correct answer
- 4
-
When a process has undivided access to a shared piece of code then no other process can execute this code, this state is called ______ .
Topic: Processes & Process Management
- Race condition
- Progress
- Mutual exclusion ✓ Correct answer
- Bounded waiting
-
The process of switching from one process to another is called ______ .
Topic: Processes & Process Management
- Context switching ✓ Correct answer
- scheduling
- quantum period
- latency
-
The nice value helps in assigning ______ to a process.
Topic: Processes & Process Management
- Scheduling
- Weight
- Priority ✓ Correct answer
- Time
-
To prevent a process from keeping CPU for too long, control is shifted to another ready process by invoking a timer .
Topic: Processes & Process Management
- When running process finishes its task.
- When running process makes a system call.
- Every time a process finishes its time slice. ✓ Correct answer
- Every time a free space is available in main memory.
-
The link between two processes P and Q to send and receive messages is called ______ .
Topic: Processes & Process Management
- Communication Link ✓ Correct answer
- Message-Passing Link
- Synchronization Link
- All of the mentioned
-
Processes P1, P2, P3, P4 enter the ready queue at times 0, 3, 3, 11 with burst time P1=8, P2=2, P3=1, P4=1. With Shortest Remaining Time First, ______ processes is given CPU at time T=3.
Topic: Processes & Process Management
- P1
- P2
- P3 ✓ Correct answer
- P4
-
The collection of processes that is waiting on the disk to be brought into the memory for execution forms the ______
Topic: Processes & Process Management
- Input queue ✓ Correct answer
- Output queue
- Both input and output queue
- None of the given options
-
If a parent exits, terminating its children processes, these children are handed over to the ______ process.
Topic: Processes & Process Management
- Init ✓ Correct answer
- Root
- Sibling
- Daemon
-
The number of processes completed per unit time is called ______ .
Topic: Processes & Process Management
- Turn around time
- Throughput ✓ Correct answer
- Response time
- Dispatch latency
-
A process consists of ______
Topic: Processes & Process Management
- Code
- Data
- One or more threads
- All of the given ✓ Correct answer
-
Which register holds the smallest legal physical memory address for a process?
Topic: Processes & Process Management
- Base register ✓ Correct answer
- Limit register
- Status register
- None of the given options
-
______ register contains the size of the process
Topic: Processes & Process Management
- Base register
- Index register
- Limit register ✓ Correct answer
- Stack pointers register
-
In ______ communication the process which wants to communicate with the other process must explicitly name the recipient and the sender.
Topic: Processes & Process Management
- Direct ✓ Correct answer
- Indirect
- Automatic
- Self
-
A program in execution is called a ______ .
Topic: Processes & Process Management
- Process ✓ Correct answer
- Compiler
- Command
- Software
-
When sender never block because it has an infinite length storage area, then it means it is holding a queue of ______ capacity.
Topic: Processes & Process Management
- Zero
- Defined
- Bounded
- Unbounded ✓ Correct answer
-
The region in the memory that a process is allowed to access is known as process ______
Topic: Processes & Process Management
- Operation
- Address Space ✓ Correct answer
- Register
- Instruction
-
Which process can be affected by other process executing in the system?
Topic: Processes & Process Management
- init process
- child process
- cooperating process ✓ Correct answer
- parent process
-
If size of a process is 376052 bytes and its smallest physical memory address is 242785. Its address space cannot exceed beyond ______ .
Topic: Processes & Process Management
- 376053
- 376051
- 618836
- 618837 ✓ Correct answer
-
A time interval when a process uses CPU only is called ______ .
Topic: Processes & Process Management
- Scheduling
- I/O burst
- CPU burst ✓ Correct answer
- Dispatch latency
-
The child process can ______
Topic: Processes & Process Management
- Be a duplicate of the parent process ✓ Correct answer
- Never be a duplicate of the parent process
- Never have another program loaded into it
- Cannot have another program loaded into it
-
The priorities of processes in the ______ group remain fixed.
Topic: Processes & Process Management
- User
- Kernel ✓ Correct answer
- Both
- None of these
-
Which of the following are TRUE for direct communication?
Topic: Processes & Process Management
- Exactly two links exist between each pair of processes
- A communication link can be associated with exactly two processes ✓ Correct answer
- A communication link can be associated with N number of process (N=maximum number of processes supported by system)
- Exactly N/2 links exist between each pair of processes(N=maximum number of processes supported by system)
-
A process is ______ if it cannot affect or be affected by any other process executing in the system.
Topic: Processes & Process Management
- Independent ✓ Correct answer
- None of the given options
- Both (Independent and Dependent)
- Dependent
-
Which of the following is correct definition for wait operation?
Topic: Processes & Process Management
- wait(S) { while (S <= 0) ; // no-op S--; } ✓ Correct answer
- wait(S) { S++; }
- wait(S) { while (S >= 0) ; // no-op S--; }
- wait(S) { S--; }
-
Which one is not the state of the process?
Topic: Processes & Process Management
- Waiting
- Running
- Privileged ✓ Correct answer
- New
-
Priority of a process is ______ to the priority number of the process.
Topic: Processes & Process Management
- Directly proportional
- Equal
- Inversely proportional ✓ Correct answer
- Greater
-
If your processor does not have two slots empty in Per Process File Descriptor Table, then your ______ system call will fail.
Topic: Inter-Process Communication
- Pipe ✓ Correct answer
- Read
- Write
- Open
-
______ system call is used to write to a file or FIFO or any other IPC channel.
Topic: Inter-Process Communication
- read
- write ✓ Correct answer
- open
- fork
-
In ______ addressing, the recipient is not required to name the sender.
Topic: Inter-Process Communication
- Symmetric
- Synchronous
- Both (symmetric and asymmetric)
- Asymmetric ✓ Correct answer
-
The BSD sockets are used for communication between related or unrelated processes on the same system or ______ on different systems.
Topic: Inter-Process Communication
- Unrelated processes ✓ Correct answer
- Related processes
- Both related and unrelated processes
- Sibling Process
-
In producer-Consumer problem synchronization is required. On which shared area this synchronization actually affect?
Topic: Inter-Process Communication
- Counter
- Buffer ✓ Correct answer
- Entry section
- Exit section
-
When processes communicate with each other, they perform communication through synchronization and utilizing separate address space. This action is termed as ______ .
Topic: Inter-Process Communication
- Process Management
- Synchronization
- Inter Process Communication ✓ Correct answer
- Direct/Indirect Communication
-
In system call that creates a pipe for IPC. If one of the operation from read/write would fail then what will be returned as result?
Topic: Inter-Process Communication
- 2
- 1
- -1 ✓ Correct answer
- 0
-
______ are used by shell commands to pass data from one shell pipeline to another, without creating temporary files.
Topic: Inter-Process Communication
- BSD Sockets
- Message Queues
- FIFOs ✓ Correct answer
- Pipes
-
______ is not a system call in Linux.
Topic: Inter-Process Communication
- read
- open
- mkfifo ✓ Correct answer
- mknod
-
Mkfifo() is a ______ .
Topic: Inter-Process Communication
- Library Call ✓ Correct answer
- Command
- Directory
- None of Above
-
In ______ inter process communication, a sender mention the name of the recipient.
Topic: Inter-Process Communication
- Indirect
- Direct ✓ Correct answer
- Automatic
- None of the given options
-
______ buffer places no practical limit on the size of the buffer
Topic: Inter-Process Communication
- Bounded
- Unbounded ✓ Correct answer
- Both Unbounded & bounded
- None of the given options
-
The process creates two FIFOs, FIFO1 and FIFO2, and opens FIFO1 for reading and FIFO2 for writing.
Topic: Inter-Process Communication
- Client
- Server ✓ Correct answer
- Both
- None of these
-
Given below two statements can be categorized in some sort of message passing techniques. This type is named as ______ Send (A, message) Receive (B, message)
Topic: Inter-Process Communication
- Direct communication ✓ Correct answer
- Send by copy communication
- Explicit buffering
- Synchronization
-
A ______ signal is generated when a write performed to fifo that no process is opened for reading.
Topic: Inter-Process Communication
- SIGFIFO
- SIGPIPE ✓ Correct answer
- Named PIPE
- Unnamed PIPE
-
Which of the following of two operations are provided by the IPC facility?
Topic: Inter-Process Communication
- Send & Delete message
- Write & Delete message
- Delete & Receive message
- Receive and send massages ✓ Correct answer
-
Bounded Buffer is a buffer of ______ size.
Topic: Inter-Process Communication
- Data
- Variable
- Fixed ✓ Correct answer
- None of these
-
IPC provides a mechanism to allow processes to communicate and to synchronize their actions without sharing the same ______
Topic: Inter-Process Communication
- Address space ✓ Correct answer
- Address Name
- Address ID
- None of all these
-
A shell command mkfifo can be used to create a /an ______ .
Topic: Inter-Process Communication
- Pipe
- Named pipe ✓ Correct answer
- Unnamed pipe
- Message queue
-
In indirect communication between processes P and Q ______ .
Topic: Inter-Process Communication
- There is another process R to handle and pass on the messages between P and Q
- There is another machine between the two processes to help communication
- There is a mailbox to help communication between P and Q ✓ Correct answer
- A link is associated with exactly two processes
-
______ are used for communication between unrelated processes on a system.
Topic: Inter-Process Communication
- Pipes
- Name pipe (FIFO)
- BSD Sockets ✓ Correct answer
- None of the given options
-
The shared buffer can be implemented as a circular array with
Topic: Inter-Process Communication
- Five
- Two ✓ Correct answer
- Three
- Four
-
Pipe system call is used to ______ a pipe.
Topic: Inter-Process Communication
- Destroy
- Create ✓ Correct answer
- Modify
- Clear
-
The scheduling of ______ are done by the operating system.
Topic: Threads & Multithreading
- Kernel threads ✓ Correct answer
- User level threads
- Both Kernel and User level thread
- None of the give option
-
______ processes or threads often need access to shared data and shared resources.
Topic: Threads & Multithreading
- Parallel
- Temporary
- Single
- Concurrent ✓ Correct answer
-
Clock interrupt handler is an example of kernel thread that is not executed for servicing a request by a user thread. It is named as ______ .
Topic: Threads & Multithreading
- EINVAL
- EAGAIN
- LWP ✓ Correct answer
- POSIX
-
We can terminate a thread explicitly by either returning from the thread function or by using the ______ call.
Topic: Threads & Multithreading
- express()
- pthread_exit() ✓ Correct answer
- win()
- slow()
-
Which is not a parameter of pthread_create().
Topic: Threads & Multithreading
- Return status ✓ Correct answer
- Thread attributes
- Thread ID
- Function
-
In multi-threaded process thread () take two argument, they are used to take ______ and ______ .
Topic: Threads & Multithreading
- Program counter value, address space limit
- New thread ID, process name ✓ Correct answer
- Register count, program counter
- New thread function name, name thread ID
-
When processes are generated using fork () system call and then after that they are coordinated with each other using IPC channel. They are utilizing a separate address space for each of process (parent, child), kernel resources and IPC channel. This makes it a more heavy. Which strategy can be used to make it light?
Topic: Threads & Multithreading
- Use of thread ✓ Correct answer
- Use of batch systems
- Scheduling of each process
- Termination of child process when these become more
-
On which machines the scheduler can move individual threads to different processors to "balance" the CPU load.
Topic: Threads & Multithreading
- Miniprocessor
- Multiprocessor ✓ Correct answer
- Doubleprocessor
- None of given options
-
Which of the following information is not displayed with top command?
Topic: Threads & Multithreading
- Number of threads in a process ✓ Correct answer
- CPU Usage
- Top processes
- Nice value
-
A process having multiple threads of control implies ______ .
Topic: Threads & Multithreading
- it has to use only one thread per process
- it can do more than one task at a time ✓ Correct answer
- it can't do library call
- it can do only task at a time, but much faster
-
The kernel is ______ user threads.
Topic: Threads & Multithreading
- a part of
- the creator of
- unaware of ✓ Correct answer
- aware of
-
______ multi-threading model provides full concurrency.
Topic: Threads & Multithreading
- One-to-Many
- Many-to-Many
- One-to-One ✓ Correct answer
- Many-to-One
-
You can have a thread wait for another thread within the same process by using the ______ system call.
Topic: Threads & Multithreading
- pthread_join() ✓ Correct answer
- pthread_exit()
- pthread_created()
- pthread_terminate()
-
A thread shares its resources (like data section, code section, open files, signals) with ______ .
Topic: Threads & Multithreading
- Other threads that belong to similar processes
- Other thread that belongs to the same processes ✓ Correct answer
- Other process similar to the one that the thread belongs to
- All
-
Kernel is responsible for scheduling the user level threads.
Topic: Threads & Multithreading
- False ✓ Correct answer
- True
- Both
- None
-
A heavy weight processes .
Topic: Threads & Multithreading
- Multiple or single thread
- Has multiple threads of execution
- Has a single thread of execution ✓ Correct answer
- None of the these
-
Each thread has its own ______ .
Topic: Threads & Multithreading
- Process ID (PID)
- Address Space
- Thread ID (TID) ✓ Correct answer
- Open file descriptors
-
All ______ within a process share the same address space
Topic: Threads & Multithreading
- Threads ✓ Correct answer
- Processes
- CPU burst
- IO Burst
-
______ scheduler selects the process from the job pool and put them in main memory.
Topic: CPU Scheduling
- Long term ✓ Correct answer
- Short term
- Medium term
- Swapper
-
______ is also called Swapper.
Topic: CPU Scheduling
- Long term
- Short term
- Medium term ✓ Correct answer
- Swap space
-
______ scheduling algorithm is sometimes called shortest remaining time first scheduling algorithm.
Topic: CPU Scheduling
- Non-preemptive SJF
- Priority Scheduling
- Preemptive Shortest Job First ✓ Correct answer
- FCFS
-
______ is the basis of queuing theory which is branch of mathematics used to analyze systems involving queues and servers.
Topic: CPU Scheduling
- Little's Formula ✓ Correct answer
- Deterministic modeling
- Queuing Theory
- Queuing Analysis
-
______ is a preemptive scheduling algorithm.
Topic: CPU Scheduling
- First Come First Serve
- Shortest Job First
- Round Robin ✓ Correct answer
- None of these
-
The problem with priority scheduling algorithm is ______ . OR A major problem with priority- scheduling algorithms is ______ .
Topic: CPU Scheduling
- Deadlock
- Starvation ✓ Correct answer
- Aging
- Nice value
-
______ scheduling allows a process to move between queues.
Topic: CPU Scheduling
- Shortest Remaining Time First
- Round Robin
- Multilevel Feedback Queue ✓ Correct answer
- First Come First Serve
-
UNIX System V scheduling uses queues, which run ______ algorithm.
Topic: CPU Scheduling
- Shortest Remaining Time First
- Round Robin ✓ Correct answer
- Shortest Job First
- First Come First Serve
-
CPU bound processes are scheduled before short or I/O bound processes in ______ scheduling, therefore, resulting in less CPU and device utilization.
Topic: CPU Scheduling
- Shortest Job First
- Shortest Remaining Time First
- First Come First Serve ✓ Correct answer
- Round-Robin
-
Round Robin algorithm is most suitable for ______ .
Topic: CPU Scheduling
- Time sharing system ✓ Correct answer
- Real time systems and batch systems
- Running batch programs
- Expert system
-
Consider three processes in scheduling. Here are the waiting times for the three processes P1 = 5; P2 = 10; P3 = 3. Which one of the following is correct average waiting time per process?
Topic: CPU Scheduling
- 18
- 6 ✓ Correct answer
- 2
- 3
-
Round Robin algorithm is similar to ______ scheduling but preemption is added to switch between processes.
Topic: CPU Scheduling
- Shortest Job First
- Shortest Remaining Time First
- First Come First Serve ✓ Correct answer
- None of these
-
When a process P1 switches from the running state to the waiting state because an I/O request is being completed .This scheduling is called ______
Topic: CPU Scheduling
- Switching
- Preemptive
- Termination
- Non-preemptive ✓ Correct answer
-
Four processes P1, P2, P3, P4 enter the ready queue at time 0 with burst time P1=3, P2=10, P3=4. Waiting time of P3 would be ______ .
Topic: CPU Scheduling
- 17
- 14
- 13 ✓ Correct answer
- 12
-
In round-robin (RR) scheduling algorithm the CPU scheduler goes around the ready queue, allocating the CPU to each process for a time interval of up to ______ time quantum.
Topic: CPU Scheduling
- 3
- 2
- 4
- 1 ✓ Correct answer
-
In round-robin (RR) scheduling algorithm, in case the time quantum is very large (infinite), the RR policy remains the same as the ______ policy.
Topic: CPU Scheduling
- FCFS (First Come First Serve) ✓ Correct answer
- LIFO (Last in First out)
- SJF (Shortest Job First)
- SRTF (Shortest Remaining Time First)
-
Performance measures of scheduling algorithms are calculated with ______ using Gantt charts, in order to evaluate an algorithm for a particular workload.
Topic: CPU Scheduling
- Simulation
- Queuing Models
- Analytic evaluation
- Deterministic modeling ✓ Correct answer
-
In process synchronization, if both the producer and consumer attempt to update the buffer concurrently, the machine language statements may get interleaved. Interleaving depends how the producer and consumer processes are ______ .
Topic: CPU Scheduling
- separated
- scheduled ✓ Correct answer
- stopped
- interrupted
-
______ scheduling algorithm can be preemptive or non-preemptive.
Topic: CPU Scheduling
- First Come First Serve
- Shortest Job First ✓ Correct answer
- Round Robin
- Priority
-
UNIX System V Scheduling Algorithm in every second, the priority number of all those processes that are in the main memory and ready to run is updated by using the following formula:
Topic: CPU Scheduling
- Priority # = (Recent CPU Usage)/2 + Threshold Priority + nice ✓ Correct answer
- Priority # = (Recent CPU Usage)/2 + nice
- Priority # = Threshold Priority + nice
- Priority # = (Recent CPU Usage)/2 + Threshold Priority
-
Under ______ once the CPU has been allocated to a process the process keeps the CPU until either it switches to the waiting state, finishes its CPU burst, or terminates.
Topic: CPU Scheduling
- Force scheduling
- Dynamic scheduling
- Preemptive scheduling
- Non -preemptive scheduling ✓ Correct answer
-
The time interval from submission of a process to the time when its output is generated is termed as .
Topic: CPU Scheduling
- CPU burst
- Throughput
- Responsive time
- Turnaround time ✓ Correct answer
-
Processes P1, P2, P3 having burst times P1=3, P2=4, P3=3 and turnaround times P1=7, P2=10, P3=9 enter the ready queue at T=0. With RR scheduling, waiting time for process P2 would be ______ .
Topic: CPU Scheduling
- 0
- 3
- 4
- 6 ✓ Correct answer
-
The ready queue In RR (Round Robin) scheduling algorithm is referred to as ______ .
Topic: CPU Scheduling
- Time Quantum
- LIFO (Last In First Out)
- Time Slice
- Circular Queue ✓ Correct answer
-
The round-robin (RR) scheduling algorithm is designed especially for ______ .
Topic: CPU Scheduling
- time-sharing systems ✓ Correct answer
- batch systems
- single-user systems
- nice systems
-
Preemptive SJF (Shorted Job First) scheduling is sometimes called ______ scheduling.
Topic: CPU Scheduling
- shortest time-last
- shortest remaining-time-first ✓ Correct answer
- smallest time-first
- biggest time-first
-
______ scheduling can be made into a processor sharing approach.
Topic: CPU Scheduling
- Shortest Job First
- Shortest Remaining Time
- First Come First Serve
- Round Robin ✓ Correct answer
-
______ are lowest prioritized processes for scheduling in Kernel Group.
Topic: CPU Scheduling
- User processes ✓ Correct answer
- Character I/O device control processes
- Block I/O control processes
- File manipulation processes
-
______ are used to show executions of processes.
Topic: CPU Scheduling
- Gantt charts ✓ Correct answer
- Time slice
- Quantum
- Sequence
-
In multilevel queue-scheduling algorithm the highest priority is given to ______ .
Topic: CPU Scheduling
- system processes ✓ Correct answer
- interactive editing processes
- batch processes
- interactive processes
-
First-Come, First-Served (FCFS) is a ______ scheduling algorithm.
Topic: CPU Scheduling
- preemptive
- non-preemptive ✓ Correct answer
- both preemptive and non- preemptive
- none of the given options
-
The Shortest-Job-First Scheduling algorithm can be
Topic: CPU Scheduling
- Preemptive only
- non-preemptive only
- preemptive or non-preemptive. ✓ Correct answer
- None of the given options
-
Time interval when the I/O Devices are accessed is known as ______ .
Topic: CPU Scheduling
- CPU Burst
- IO Burst ✓ Correct answer
- Time Slice
- None of Above
-
In priority-scheduling algorithm equal priority processes are scheduled in ______ order.
Topic: CPU Scheduling
- SJF (Shorted Job First)
- LIFO (Last in First Out)
- FCFS (First Come First Serve) ✓ Correct answer
- SRTF (Shortest Remaining Time First)
-
In a Multilevel Queue, the foreground queue has ______ scheduling algorithm and background queue has ______ scheduling algorithm.
Topic: CPU Scheduling
- First Come First Serve, Round-Robin
- Round-Robin, First Come First Serve ✓ Correct answer
- Round-Robin, Round-Robin
- First Come First Serve, First Come First Serve
-
Which of the following is not a major advantages of multi-programming system is
Topic: CPU Scheduling
- If more processes exit, the rest must wait until the CPU is free and rescheduled ✓ Correct answer
- CPU utilization can be increases
- Jobs can be completed quickly
- More than one jobs can be processed at a given time
-
______ scheduler takes the process from the ready queue and assign the CPU with the help of Dispatcher.
Topic: CPU Scheduling
- Long term
- Medium term
- Swapper
- Short term ✓ Correct answer
-
Round Robin schedule usually increase the average waiting time so its performance heavily depends upon ______ .
Topic: CPU Scheduling
- No. of processes
- Time quantum ✓ Correct answer
- Switching
- No. of queues
-
A ______ is an integer variable that, apart from initialization is accessible only through standard atomic operations. OR ______ is an integer variable accessible through wait and signal which are atomic operations.
Topic: Synchronization, Critical Section & Semaphores
- Mutual Exclusion
- Semaphore ✓ Correct answer
- Mutex
- Busy Waiting
-
______ is a piece of code in cooperating process in which the process may updates shared data (variable, file, database, etc.).
Topic: Synchronization, Critical Section & Semaphores
- Critical Analysis
- Critical Section ✓ Correct answer
- Critical Path
- Critical Code
-
The following requirement for solving critical section problem is known as ______ . "There exists a bound on the number of times that other processes are allowed to enter their critical sections after a process has made a request to enter its critical section and before that request is granted."
Topic: Synchronization, Critical Section & Semaphores
- Progress
- Bounded Waiting ✓ Correct answer
- Mutual Exclusion
- Critical Region
-
A semaphore that cause Busy-Waiting is termed as ______ .
Topic: Synchronization, Critical Section & Semaphores
- Spinlock ✓ Correct answer
- Monitor
- Critical region
- Critical section
-
Use of semaphore create a problem of busy waiting, this wastes CPU cycles that some other process may be able to use productively. The semaphore is also called ______ .
Topic: Synchronization, Critical Section & Semaphores
- Semaphore S
- Spinlock ✓ Correct answer
- Locking Semaphore
- Mutex
-
In critical section problem, each process must first request permission to enter its critical section. The section of code implementing this request is called the ______ .
Topic: Synchronization, Critical Section & Semaphores
- sub section
- entry section ✓ Correct answer
- exit section
- remainder section
-
______ algorithm is used for solving n-process critical section problem.
Topic: Synchronization, Critical Section & Semaphores
- Bankers
- Bakery ✓ Correct answer
- Babbles
- Adams
-
Which of the following conditions must be satisfied to solve the critical section problem?
Topic: Synchronization, Critical Section & Semaphores
- Mutual Exclusion
- Progress
- Bounded Waiting
- All of the mentioned ✓ Correct answer
-
The critical section problem can be solved by the following except
Topic: Synchronization, Critical Section & Semaphores
- Software based solution
- Firmware based solution ✓ Correct answer
- Operating system based solution
- Hardware based solution
-
Concurrent processes must be synchronized to prevent ______ .
Topic: Synchronization, Critical Section & Semaphores
- Mutual exclusion
- Race condition ✓ Correct answer
- Critical Section
- Waiting
-
The solution type where in critical section we use "entry section" and "exit section" is called kind of ______ .
Topic: Synchronization, Critical Section & Semaphores
- Hardware Solution
- Assumption
- Software Solution ✓ Correct answer
- Operating System Solution
-
A solution to the critical section problem must satisfy the following requirements except
Topic: Synchronization, Critical Section & Semaphores
- Race Condition ✓ Correct answer
- Progress
- Mutual Exclusion
- Bounded Waiting
-
______ is a segment of code that accesses a shared resource like data structure or device that must not be concurrently accessed by more than one thread of execution.
Topic: Synchronization, Critical Section & Semaphores
- Multithreading
- Context switching
- Critical section ✓ Correct answer
- Pipelining
-
P1, P2, P3, P4, P5 are five processes with ticket numbers P1=1, P2=2, P3=4, P5=4 then considering Lamport's bakery algorithm, ______ process enters critical section after P1.
Topic: Synchronization, Critical Section & Semaphores
- P2 ✓ Correct answer
- P3
- P4
- P5
-
We can perform the solution to critical section problem by allowing only one process to enter at a time but another solution hold some instance use one of them is TSL, how it is written in program?
Topic: Synchronization, Critical Section & Semaphores
- TestAndSet(Boolean &target) ✓ Correct answer
- Testandset (Boolean &target)
- TSL (Boolean, &target)
- None of the given
-
Using hardware solution to synchronization for complex problems, introduce a new synchronization tool know as ______ .
Topic: Synchronization, Critical Section & Semaphores
- Trap
- TestAndSet
- Swap
- Semaphore ✓ Correct answer
-
While a process executes its critical section, other entering processes loop in a continual fashion in their entry sections, thus causing ______ .
Topic: Synchronization, Critical Section & Semaphores
- Bounded waiting
- Busy waiting ✓ Correct answer
- Race condition
- Mutual exclusion
-
For undivided and uninterrupted testing and setting of semaphore, uni-processor system tend to ______ .
Topic: Synchronization, Critical Section & Semaphores
- Use signal
- Use Spinlock
- Disable interrupt ✓ Correct answer
- Use Bakery Algorithm
-
Software solution to critical section problem can run only in environment ______
Topic: Synchronization, Critical Section & Semaphores
- Multiprocessor
- Multithreading
- Uniprocessor ✓ Correct answer
- Separate address spacing
-
n-process critical section problem can be solved by using
Topic: Synchronization, Critical Section & Semaphores
- The bakery algorithm ✓ Correct answer
- Deterministing modeling
- Analytic evaluation
- None of above
-
Keeping in mind scheduling algorithm, when you go to any famous fast food franchise. On entering the store, each customer receive a number. The customer with a lowest number is served next. This algorithm is called .
Topic: Synchronization, Critical Section & Semaphores
- Simple algorithm
- Bakery algorithm ✓ Correct answer
- Dijkstra's algorithm
- Deadlock algorithm
-
Critical section is a place where certain shared structure is updated. Its solution required certain precaution; one of them is the access to critical section by one process at a time only. What this condition is termed as?
Topic: Synchronization, Critical Section & Semaphores
- Progress
- Entry section
- Bounded waiting
- Mutual exclusion ✓ Correct answer
-
Critical section problem is to ______ the concurrent execution of cooperating process.
Topic: Synchronization, Critical Section & Semaphores
- update
- serialize ✓ Correct answer
- stop
- start
-
In critical section problem ______ requirement illustrates that, "If no process is executing in its critical section and some processes wish to enter their critical sections, then only those processes that are not executing in their remainder section can participate in the decision on which will enter its critical section text, and this selection cannot be postponed indefinitely."
Topic: Synchronization, Critical Section & Semaphores
- progress ✓ Correct answer
- bounded waiting
- mutual exclusion
- slow execution
-
Critical section problem can be solved by using how many ways?
Topic: Synchronization, Critical Section & Semaphores
- 4
- 3 ✓ Correct answer
- 1
- 2
-
In the bakery algorithm to solve the critical section problem ______
Topic: Synchronization, Critical Section & Semaphores
- Each process receives a number (may or may not be unique) and the one with the lowest number is served next ✓ Correct answer
- Each process is put into a queue and picked up in an ordered manner
- Each process gets a unique number and the one with the lowest number is served next
- Each process gets a unique number and the one with the highest number is served next
-
The segment of code in which the process may change common variables, update tables, write into files is known as ______ .
Topic: Synchronization, Critical Section & Semaphores
- critical section ✓ Correct answer
- program
- synchronizing
- non - critical section
-
Consider a scenario in which one process P1 enters in its critical section, no other process is allowed to execute in its critical section. This is called ______ .
Topic: Synchronization, Critical Section & Semaphores
- Mutual exclusion ✓ Correct answer
- Context switching
- Multithreading
- Progress
-
Consider a system of N processes (P0, P1 …. Pn-1). Each process in its critical section and the process may be changing common variables, updating a table, writing a file etc. No other process is allowed to execute in its critical section. This problem is called ______
Topic: Synchronization, Critical Section & Semaphores
- N-Mutual Exclusion
- N-Process Critical Section ✓ Correct answer
- Deadlock Algorithm
- Bakery Algorithm
-
In instruction TestAndSet mutual exclusion implementation is done by declaring a Boolean variable lock ______ .
Topic: Synchronization, Critical Section & Semaphores
- Initialized as 1
- Initialized as Zero
- Initialized as True
- Initialized to False ✓ Correct answer
-
We can use semaphores to deal with the number of ______ process critical section problem.
Topic: Synchronization, Critical Section & Semaphores
- 1
- n ✓ Correct answer
- n-1
- 2n
-
Semaphore S is a/an ______ type of variable to use as synchronization tool.
Topic: Synchronization, Critical Section & Semaphores
- Float
- Double
- Integer ✓ Correct answer
- Boolean
-
______ is a solution to critical problem.
Topic: Synchronization, Critical Section & Semaphores
- Banker's algorithm
- Dijkstra's algorithm
- Lamport's bakery algorithm ✓ Correct answer
- Safety algorithm
-
TestAndSet instruction is executed ______ .
Topic: Synchronization, Critical Section & Semaphores
- After a particular process
- Periodically
- Atomically ✓ Correct answer
- None of the mentioned
-
The section of code after the critical section is called ______ section.
Topic: Synchronization, Critical Section & Semaphores
- Exit
- Entry
- Crystal
- Remainder ✓ Correct answer
-
Co-operating process sharing a piece of code are executed periodically to solve
Topic: Synchronization, Critical Section & Semaphores
- Aging problem
- Waiting problem
- Non-concurrency
- Critical section problem ✓ Correct answer
-
Both in two atomic instructions TestAndSet and swap two critical section requirements are satisfied but not.
Topic: Synchronization, Critical Section & Semaphores
- Progress
- Assumptions
- Mutual exclusion
- Bounded waiting ✓ Correct answer
-
In the Bakery algorithm, processes are prioritized based on highest ticks among computing processes.
Topic: Synchronization, Critical Section & Semaphores
- False ✓ Correct answer
- True
- Both
- None
-
TSL based solution can implement mutual exclusion, it abbreviates ______ .
Topic: Synchronization, Critical Section & Semaphores
- Test Set Instrument
- TestAndSetLock ✓ Correct answer
- Trap Set Solution
- Test Swap Instruction
-
The wait operation of the semaphore basically works on the basic ______ system call.
Topic: Synchronization, Critical Section & Semaphores
- block() ✓ Correct answer
- wait()
- hold()
- stop()
-
The following is NOT a classical problem of synchronization
Topic: Synchronization, Critical Section & Semaphores
- Bounded buffer problem
- Reader writer problem
- Dining philosopher's problem
- Counting semaphore problem ✓ Correct answer
-
The integer value of ______ semaphores can range over an unrestricted integer domain.
Topic: Synchronization, Critical Section & Semaphores
- Counting ✓ Correct answer
- Binary
- Mutex
- Bounded buffer
-
The ______ semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 1.
Topic: Synchronization, Critical Section & Semaphores
- mutex ✓ Correct answer
- binary
- couting
- none of the given options
-
Binary semaphores are those that have only two values ______
Topic: Synchronization, Critical Section & Semaphores
- 0 and n
- 0 and 0
- 0 and 1 ✓ Correct answer
- None of the given options
-
The ______ requires that once a writer is ready, that writer performs its write as soon as possible , if a writer waiting to access the object, no new readers may start reading.
Topic: Synchronization, Critical Section & Semaphores
- first readers-writers problem
- second readers-writers problem ✓ Correct answer
- third readers-writers problem
- fourth readers-writers problem
-
The integer value of ______ semaphores can not be greater than 1.
Topic: Synchronization, Critical Section & Semaphores
- Counting
- Binary ✓ Correct answer
- Mutex
- Bounded buffer
-
To avoid race condition, the number of processes that may be simultaneously inside their critical section is
Topic: Synchronization, Critical Section & Semaphores
- 8
- 1 ✓ Correct answer
- 16
- 0