Looking for Процедурне програмування (кіббез) test answers and solutions? Browse our comprehensive collection of verified answers for Процедурне програмування (кіббез) at distedu.ukma.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
A child process writes "Hello" into shared memory. The parent process immediately reads the shared memory.
What is the main potential synchronization problem with this approach?
A producer needs to transfer large video frames to a consumer with minimal data-copying overhead. What is the best IPC primitive for it?
A TCP server has created a socket and successfully called bind(). What should it do next to prepare to accept incoming client connections?
A server calls:struct pollfd fds[2];
fds[0].fd = client1;fds[0].events = POLLIN;
fds[1].fd = client2;fds[1].events = POLLIN;
int result = poll(fds, 2, -1);
Assume the call succeeds. What does a positive return value indicate?
Consider a server that uses non-blocking sockets to check 1,000 client connections in a loop. After checking every client, it calls usleep(100000). What are the main disadvantages of this approach?
An event-driven IPC server handles requests such as connect_to_wifi. The operation may take several seconds to complete.
Which statements describe a well-designed event-driven implementation?
What are the main differences between stream sockets (SOCK_STREAM) and datagram sockets (SOCK_DGRAM)?
What is the main purpose of the poll() system call in C?
A parent process creates a child process and needs a simple, unidirectional communication channel between them. What is the best IPC primitive for it?
What is the purpose of semaphores?