Шукаєте відповіді та рішення тестів для Процедурне програмування (кіббез)? Перегляньте нашу велику колекцію перевірених відповідей для Процедурне програмування (кіббез) в distedu.ukma.edu.ua.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
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?