How many threads are needed for synchronous socket communication that does not b
ID: 3748998 • Letter: H
Question
How many threads are needed for synchronous socket communication that does not block?
Question 3 options:
Four-- two for creating, one for sending, and one for receiving
Three-- one for creating, one for sending, and one for receiving
Two-- one for sending and one for receiving
Six-- two for creating, one for sending, one for receiving, and two for closing
Four-- two for creating, one for sending, and one for receiving
Three-- one for creating, one for sending, and one for receiving
Two-- one for sending and one for receiving
Six-- two for creating, one for sending, one for receiving, and two for closing
Explanation / Answer
Two-- one for sending and one for receiving
The number of threads needed for synchronous socket communication that does not block are 2.
One is the recieving thread and one is the sending thread. The threads are send() and recieve() . After the send operation the thread proceeds and runs parallel with sender program . After the recieve operation the recieve process is executed .
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.