logo

Crowdly

Browser

Додати до Chrome

Процедурне програмування (кіббез)

Шукаєте відповіді та рішення тестів для Процедурне програмування (кіббез)? Перегляньте нашу велику колекцію перевірених відповідей для Процедурне програмування (кіббез) в 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?

0%
0%
0%
❌
Переглянути це питання

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?

✅
✅
❌
❌
❌
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на distedu.ukma.edu.ua?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome