hw6 - 4003-440 and 4003-713 Operating SystemsHomework #6Due...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

hw6 - 4003-440 and 4003-713 Operating SystemsHomework #6Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online