logo

Crowdly

Browser

Add to Chrome

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

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?

✅
❌
❌
❌
View this question

A producer needs to transfer large video frames to a consumer with minimal data-copying overhead. What is the best IPC primitive for it?

❌
✅
❌
❌
❌
View this question

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%
❌
View this question

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?

❌
❌
❌
✅
View this question

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?

❌
✅
❌
❌
View this question

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?

✅
✅
❌
❌
✅
View this question

What are the main differences between stream sockets (SOCK_STREAM) and datagram sockets (SOCK_DGRAM)?

✅
✅
❌
❌
View this question

What is the main purpose of the poll() system call in C?

❌
❌
❌
✅
View this question

A parent process creates a child process and needs a simple, unidirectional communication channel between them. What is the best IPC primitive for it?

✅
❌
❌
❌
❌
View this question

What is the purpose of semaphores?

✅
✅
❌
❌
❌
View this question

Want instant access to all verified answers on distedu.ukma.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome