Description: Simulation of multi-process sharing of critical resources
1, the realization of the process of simulation of the two critical areas of the user to enter the process, when to enter the critical zone, showed that: "the process of the request to enter the critical section x ...", at the same time make an application to the management process applied to return, that has entered a critical section. Critical areas in the random wait time, and display: "x is critical process ..." when the end time shows: "the process of x from the critical areas ..." and at the same time to withdraw from the application management process when applied to return, showing: "the process of x have withdrawn from the critical area."
2, a process management as a primitive process, other process requests to enter the critical region: if allowed to enter, then set the appropriate variables, and then return if not allowed to enter, then enter the cycle of waiting until the permit is effected
3, access to cr
To Search:
File list (Check if you may need any files):
ThreadTest
..........\.classpath
..........\.project
..........\MainFrame$1.class
..........\MainFrame$2.class
..........\MainFrame.class
..........\MainFrame.java
..........\ThingSome.class
..........\ThingSome.java
..........\ThreadManager.class
..........\ThreadManager.java
..........\ThreadShow.class
..........\ThreadShow.java
..........\ThreadUser.class
..........\ThreadUser.java