Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (4)
Reader writer process
no vote
Application background The reader writer problem (problem Readers-Writers) is also a classic concurrent programming problem, which is often a kind of synchronization problem. Computer system of data (documents, records) are often multiple processes sharing, but the process that some may only read data (called for reader reader); some other process is required to modify data (known as writer). In terms of shared data, Reader and Writer are two groups of concurrent processes that share a set of data areas that require:(1) allow multiple readers to read and execute at the same time;(2) do not allow readers, writers at the same time operating;(3) do not allow multiple writers to operate at the same time.The synchronization problem of Reader and Writer is divided into the reader first, the weak write priority (fair competition) and the strong writer You Xiansan kind of situation, the processing method is different.
沉默超人
2016-08-23
0
1
For beginners to understand the plant model
no vote
Application background Suitable for beginners to learn factory modeFactory mode is our most commonly used to model the object is to use the factory method instead of new operation of a model. The famous Jive forum, on a large number of the use of the factory model, the factory model in the Java program system can be said to be everywhere. Because the factory pattern is equivalent to create a new instance of the object, we often have to generate an instance of an object according to the class, such as a a=new (a) the factory pattern is used to create an instance of an object, so after new to many minds, can consider to use the factory pattern, although to do so, may do some work, but will give you a system to bring a greater scalability and to minimize the amount of modifications.
沉默超人
2016-08-23
0
1
Banker's algorithm
no vote
Application background Banker's algorithm is one of the most representative of the algorithm to avoid deadlock. In order to avoid deadlock method allows dynamic process application of resources, but the system before the allocation of resources should be prior to the calculation of the safety of the allocation of resources, if the distribution does not cause the system to enter the state of insecurity, distribution, or wait. In order to achieve the banker's algorithm, the system must set up a number of data structures
沉默超人
2016-08-23
0
1
Dormitory management system (including 3 administr
no vote
Application background Dormitory management is often mentioned in various schools and colleges and universities. Dormitory management is an important work of the logistics department. But now many logistics departments are still using the most primitive way of dormitory management. And students in the process of staying in the process of student accommodation can not be effectively updated, and students often replace the dormitory and so on.
沉默超人
2016-08-23
0
1
No more~