GATE | GATE CS 2008 | Question 59
A client process P needs to make a TCP connection to a server process S. Consider the following situation: the server process S executes a socket(), a bind() and a listen() system call in that order, following which it is preempted. Subsequently, the client process P executes a socket() system call followed by connect() system call to connect to the server process S. The server process has not executed any accept() system call. Which one of the following events could take place?
(A) connect () system call returns successfully
(B) connect () system call blocks
(C) connect () system call returns an error
(D) connect () system call results in a core dump
Answer: (C)
Explanation: See Question 2 of https://www.geeksforgeeks.org/computer-networks-set-8/
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 2008 | Question 67
- GATE | GATE CS 2008 | Question 85
- GATE | GATE CS 2008 | Question 84
- GATE | GATE CS 2008 | Question 83
- GATE | GATE CS 2008 | Question 68
- GATE | GATE CS 2008 | Question 69
- GATE | GATE CS 2008 | Question 70
- GATE | GATE CS 2008 | Question 71
- GATE | GATE CS 2008 | Question 72
- GATE | GATE CS 2008 | Question 73
- GATE | GATE CS 2008 | Question 74
- GATE | GATE CS 2008 | Question 75
- GATE | GATE CS 2008 | Question 76
- GATE | GATE CS 2008 | Question 77
- GATE | GATE CS 2008 | Question 78



