- Java code to display operations on bank account
- Note: to open web links in a new window use: ctrl+click on link
- Code from Java Programming Masterclass Section 15-288 to 15-292 - see 👏 Inspiration below
- Lock framework used instead of synchronized block for increased concurrency and overall performance.
N/A
- Java v11
- synchronized method only one synchronised method can operate on an object block at a time. This makes it thread-safe
- Interface Lock a tool for controlling access to a shared resource by multiple threads.
- Enum Timeunit
- Open folder in an IDE such as IntelliJ. Run from
Main.java
- Interface lock code format
Lock l = ...;
l.lock();
try {
// access the resource protected by this lock
} finally {
l.unlock();
}
- N/A
- Status: Working
- To-Do: Complete
- N/A
- Repo created by ABateman, email: gomezbateman@yahoo.com