230 Exam Questions with complete solution 2024/2025
1 view 0 purchase
Course
WDD
Institution
WDD
230 Exam Questions with complete solution 2024/2025 230 Exam
sem_post() decrements the value of a semaphore. - correct answer FALSE. it increments
A server process can manage multiple TCP/IP connections through a single port - correct answer TRUE
Two processes can use a single pipe for...
230 Exam
sem_post() decrements the value of a semaphore. - correct answer
✔FALSE. it increments
A server process can manage multiple TCP/IP connections through a single
port - correct answer ✔TRUE
Two processes can use a single pipe for bi-directional communication. -
correct answer ✔FALSE: If you use the same pipe how does the child
separate its messages from the parents messages and vice versa?
Any bytes written to a pipe beyond its capacity are discarded - correct answer
✔FALSE: the data is blocked until the pipe is not full
In a client-server architecture, the server typically has a dynamic IP address. -
correct answer ✔FALSE: it has a static IP
When all file descriptors referring to a pipe have been closed, any outstanding
data is discarded. - correct answer ✔TRUE
A connection is uniquely identified by the socket addresses of its endpoints
(IP address and port number) and its protocol. - correct answer ✔TRUE
With TCP sockets, the well-known ports have lower port numbers than
ephemeral ports. - correct answer ✔TRUE: well-known ports are lower
, In a process with multiple running threads, if a thread created with
pthread_create(3) calls exit(2), the main thread will continue to execute. -
correct answer ✔FALSE: exit() terminates all threads
pthread_exit() only terminates one
Two threads in the same process share the same call stack - correct answer
✔FALSE: In a multi-threaded process, all of the process' threads share the
same memory and open files. Within the shared memory, each thread gets its
own stack
Name the two thread-based functions that best correspond to the two
process-based functions fork() and waitpid(). - correct answer
✔pthread_create and phread_join
Name two advantages of stream sockets services (TCP) over datagram
sockets services (UDP). - correct answer ✔TCP: connection-orienteded
reliable
slower
flow/congention control
UDP: connectionless
unreliable
faster
no flow/congestion contorl
Name two possible advantages of using processes compared to using
threads. - correct answer ✔Process pros:
clean sharing model
simple and straight forward
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Academia199. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.49. You're not tied to anything after your purchase.