This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 4003-440 and 4003-713 Operating SystemsHomework #6Due January 29, 2007Name: _____TJ Wasik___________________________Section: ________01_________________1. Servers can be designed to limit the number of open connections. For example, a server may wish to have only N socket connections at any point in time. As soon as N connections are made, the server will not accept another incoming connection until an existing connection is released. Explain how semaphores can be used by a server to limit the number of concurrent connections.Set the semaphore to the number of allowable open socket connections, when a connection is attempted acquire is called on the semaphore and release is called when the connection is closed. This way if more connections then allowable are attempted new connections will block until one is available.2. Show that, if the wait() and signal() semaphore operations are not executed atomically, then mutual exclusion may be violated....
View Full Document
This note was uploaded on 04/11/2008 for the course GCCIS 440 taught by Professor Unknown during the Winter '06 term at RIT.
- Winter '06