Q) Context switching in Linux is
- Kernel switches from executing one process to another.
- Process switches from kernel mode to user mode.
- Process switches from user mode to kernel mode.
- None of the other option listed for this question
Answer: 3
In computing, a context switch is the process of storing the state of a process or of a thread, so that it can be restored and execution resumed from the same point later. This allows multiple processes to share a single CPU, and is an essential feature of a multitasking operating system.
The precise meaning of the phrase “context switch” varies significantly in usage. In a multitasking context, it refers to the process of storing the system state for one task, so that that task can be paused and another task resumed. A context switch can also occur as the result of an interrupt, such as when a task needs to access disk storage, freeing up CPU time for other tasks. Some operating systems also require a context switch to move between user mode and kernel mode tasks. Wikipedia
Q) Linux operating system is virus free.
- true
- false
Answer: 2
Linux is known to have least number of Viruses.
Q) Maximum number of processes in Linux is
- 32768
- 1024
- 2048
- 16384
Answer: 1
On 32-bit platforms, 32768 is the maximum value for pid_max. On 64-bit systems, pid_max can be set to any value up to 2^22 (PID_MAX_LIMIT, approximately 4 million)