Welcome to Westonci.ca, your go-to destination for finding answers to all your questions. Join our expert community today! Get quick and reliable answers to your questions from a dedicated community of professionals on our platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

in the lectures, there is an example of web server using multi-threading. it creates a new thread to serve every request. suppose you like to limit the resource consumption by allowing no more than 100 active threads simultaneously, how do you modify the code to realize this limit? (hint: use semaphore(s). pseudo code is enough.)