Question
Which of the following is not a method of inter-process
communication (IPC) in modern operating systems?ÂSolution
Semaphores are primarily used for synchronization between processes or threads rather than for communication. They act as signaling mechanisms to control access to shared resources and help avoid race conditions. In contrast, IPC mechanisms like pipes, shared memory, message queues, and sockets are explicitly designed to facilitate communication between processes. These methods allow data to be passed between processes running on the same machine or even across different machines in the case of network communication. Why other options are wrong: A) Pipes are a traditional IPC method used for one-way communication between processes. B) Shared Memory is a highly efficient IPC method that allows processes to access common memory regions. C) Message Queues allow processes to send and receive messages in a queue, facilitating communication. D) Sockets enable communication between processes over networks, including TCP/IP communication.
In a 5-stage pipeline (Fetch, Decode, Execute, Memory, Write-back), how many instructions can be in various stages of processing at the same time?
A transformer has a primary coil with 300 turns and a secondary coil with 150 turns. If the primary voltage is 240V, calculate the secondary voltage.
Which of the following is a common problem that synchronization mechanisms address in multi-threaded or multi-process environments?
What happens when a program accesses data that is not currently in physical memory (RAM) due to virtual memory management?
Which of the following is not a valid keyword in C++ language?
XML is designed to ____ and ____ data)
What is the main purpose of a digital signature in public key cryptography?
The best case time complexity of selection sort?
What is the space complexity of an algorithm?
Which functions are declared inside a class have to be defined separately outside the class?