Assume that there are 5 sections of Computer Science 101, each with 20 spots for students. The computer application that assigns students to course sections includes requests from multiple threads for spots in the course. Write a program that allows 100 concurrently running student threads to request and obtain spots, in such a manner that the enrollment of no course exceeds the limit.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here