Linux and Windows OS design principles and distributed system fundamentals. - One Line Questions

1. What is a 'process group' in Linux? A collection of related processes that can be managed together, often for signal handling
2. What is a 'process scheduler' in an operating system? A component that determines which processes get to use the CPU and for how long
3. What is a 'virtual file system' (VFS) in Linux? An abstraction layer that allows the kernel to interact with different file system types uniformly
4. What is 'eventual consistency' in distributed systems? A consistency model where, if no new updates are made, eventually all replicas will converge to the same state
5. What is a 'mutex' in the context of concurrent programming and operating systems? A synchronization primitive that ensures only one thread can access a resource at a time
6. What is a 'distributed lock' in the context of distributed systems? A way to ensure exclusive access to a shared resource across multiple nodes
7. What is the Windows equivalent of a Linux daemon? A service
8. What is the 'System V IPC' mechanism in Linux? A set of legacy IPC mechanisms including message queues, semaphores, and shared memory segments
9. In a peer-to-peer (P2P) distributed system, what is a key characteristic? Decentralized resource sharing among participants
10. What is a 'distributed transaction'? A transaction that involves multiple distributed nodes, requiring coordination to ensure atomicity (all or nothing)
11. What is a 'kernel module' in Linux? A piece of code that can be loaded into and unloaded from the kernel on demand, extending its functionality
12. Linux's kernel architecture is primarily characterized by its use of: A hybrid kernel approach with loadable modules
13. In distributed systems, what is a 'quorum'? A minimum number of nodes that must agree to a decision or operation for it to be considered valid
14. What is a 'daemon' in Linux? A background process that runs without direct user interaction
15. What is a 'container' in modern computing, often associated with Linux? An isolated environment that shares the host OS kernel but has its own filesystem, processes, and network stack
16. What is the primary command-line interpreter in modern Windows versions? PowerShell
17. What is the 'CAP theorem' in distributed systems concerned with? Consistency, Availability, and Partition Tolerance
18. According to the CAP theorem, a distributed system can only guarantee two out of the following three properties at any given time: Consistency, Availability, Partition Tolerance
19. What is a common challenge in distributed systems related to data consistency? Maintaining identical data across all replicas in the face of concurrent updates and network delays
20. Which Linux process management concept allows a parent process to create a new process that is a near-identical copy of itself? fork()
21. What is the primary file system used by modern Windows versions? NTFS
22. Which Linux filesystem is known for its journaling capabilities, improving data integrity after crashes? ext4
23. What is a key advantage of a microkernel design? Increased system stability and security
24. What is a primary disadvantage of a microkernel design compared to a monolithic kernel? Slower performance due to frequent context switching and IPC
25. What is the primary role of a kernel in an operating system? Managing hardware resources and system processes
26. What design principle in operating systems focuses on dividing tasks into smaller, manageable units that can be executed independently? Modular design
27. Which type of distributed system architecture involves a central server that manages resources and client requests? Client-server
28. Which IPC mechanism is commonly used in Linux for communication between related processes? Pipes
29. In Windows, what is a common IPC mechanism that utilizes named objects for communication? COM (Component Object Model)
30. Which of the following is a common shell in Linux distributions? Bash
31. Windows NT kernel architecture is best described as: Hybrid kernel
32. What is 'virtualization' in the context of operating systems and distributed systems? Creating a logical representation of computing resources that abstracts away the physical hardware
33. Which concept in distributed systems refers to the ability of a system to continue operating, possibly at a reduced level, even if some of its components fail? Fault Tolerance
34. Which of the following is a core component of the Linux kernel responsible for process management, memory management, and device management? Kernel
35. What is a common challenge in designing distributed systems related to time? Synchronizing clocks across geographically dispersed nodes
36. What is 'idempotence' in distributed systems? The ability of an operation to be performed multiple times without changing the result beyond the initial application
37. In distributed systems, what does 'scalability' refer to? The ability to handle increasing amounts of work by adding resources
38. What is the 'Executive' in the Windows NT kernel architecture? A layer above the microkernel that provides core OS services like I/O, memory management, and process management
39. What is 'inter-process communication' (IPC)? A mechanism that allows different processes to exchange data and synchronize their actions
40. What is the 'context switch' in operating systems? Saving the state of a running process and loading the state of another process to allow the CPU to switch between them
41. In Linux, what is the 'init' system (e.g., System V init, systemd)? The first process started by the kernel, responsible for initializing the rest of the system and managing services
42. What is the primary purpose of a 'process ID' (PID) in both Linux and Windows? To uniquely identify a running process within the operating system
43. What is the primary purpose of 'load balancing' in distributed systems? To distribute incoming network traffic and computational workload across multiple servers to optimize resource utilization and response time
44. What is a 'semaphore' used for in operating systems? To control access to a shared resource by multiple processes or threads, allowing a specified number of them to access it concurrently
45. What is the primary function of a shell in Linux? To execute commands and scripts
46. Windows uses a registry to store configuration settings. What is the primary role of the Windows Registry? To store hardware and software configuration information
47. What is the role of the 'Windows Registry Editor' (regedit.exe)? To view and modify the Windows Registry, which stores configuration settings
48. In Windows, what is the equivalent of the Linux kernel's role in managing system resources? Kernel-mode drivers and Executive subsystem
49. In Windows, what component is responsible for scheduling threads and managing process lifecycles? Kernel