CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
WEB Code
JSP/Java
Main Category
SourceCode
Web Code
Develop Tools
Document
Other resource
Search in result
Search
JSP/Java list
Sort by :
«
1
2
...
.80
.81
.82
.83
.84
10985
.86
.87
.88
.89
.90
...
14331
»
JavaThreadDemo
Downloaded:0
Demonstrates concurrent execution of multiple threads.
Date
: 2025-10-02
Size
: 2kb
User
:
Key
CarPark
Downloaded:0
The carpark holds a maximum of four cars. Further arrivals are blocked when the carpark is full.
Date
: 2025-10-02
Size
: 2kb
User
:
Key
SemaDemo
Downloaded:0
The program uses a semaphore to ensure that it is not possible for threads to enter their critical sections at the same time. The critical section is represented by a light blue (cyan) colour. To execute in this region,
Date
: 2025-10-02
Size
: 3kb
User
:
Key
Buffer
Downloaded:0
The program uses a bounded buffer monitor into which the Producer thread puts characters and from which the Consumer thread gets characters. The Consumer runs slightly faster than the Producer, so start the Producer firs
Date
: 2025-10-02
Size
: 3kb
User
:
Key
NestedMonitor
Downloaded:0
This version of the bounded buffer monitor uses semaphores instead of Java conditional synchronization. Can you get it to deadlock?
Date
: 2025-10-02
Size
: 1kb
User
:
Key
FixedNestedMonitor
Downloaded:0
This version of the bounded buffer monitor uses semaphores. In this version, the deadlock has been fixed.
Date
: 2025-10-02
Size
: 1kb
User
:
Key
Dining_Philosophers
Downloaded:0
Five philosophers sit around a circular table. Each philosopher spends his life alternatively thinking and eating. In the centre of the table is a large plate of spaghetti. A philosopher needs two forks to eat a helping
Date
: 2025-10-02
Size
: 3kb
User
:
Key
Fixed_Dining_Philosophers
Downloaded:0
The version avoids the possibility of deadlock by making even numbered philosophers pick up the chopsticks in a different order from the rest. That is, left first rather than right first.
Date
: 2025-10-02
Size
: 1kb
User
:
Key
Bridge
Downloaded:0
Cars cannot pass each other on the bridge. The buttons set the number of cars moving in each direction. The default is one blue car and one red car. Try two and three. The safe checkbox, if cleared, changes the bridge mo
Date
: 2025-10-02
Size
: 4kb
User
:
Key
ReadersWriters
Downloaded:0
The program allows Readers concurrent access to a resource while restricting Writers to exclusive access. Thread access to the shared resource is depicted by a light blue (cyan) arc segment. It is possible by starting th
Date
: 2025-10-02
Size
: 5kb
User
:
Key
ReadWritePriority
Downloaded:0
This version gives priority to Writers by making Readers defer to waiting Reader threads. Consequently, Writers do not starve, however, giving Writers priority means that Readers may starve.
Date
: 2025-10-02
Size
: 5kb
User
:
Key
ReadWriteFair
Downloaded:0
This version implements a strategy in which a Writer make waiting Readers runnable after it releases the write lock.
Date
: 2025-10-02
Size
: 5kb
User
:
Key
«
1
2
...
.80
.81
.82
.83
.84
10985
.86
.87
.88
.89
.90
...
14331
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.