Here's the full text
Exception in thread "t1" java.lang.IllegalMonitorStateException
at java.lang.Object.notify(Native Method)
at csu.mcdonald.Library.returnBook(Library.java:34)
at...
Type: Posts; User: mynorka
Here's the full text
Exception in thread "t1" java.lang.IllegalMonitorStateException
at java.lang.Object.notify(Native Method)
at csu.mcdonald.Library.returnBook(Library.java:34)
at...
I've modified the Library class to include two methods for retrieving and returning books, however, I keep getting a IllegalMonitorStateException whenever I try and run the program
public class...
Could I pass an instance of Library to the PatronThread constructor? And if I do that, wouldn't it still create a separate instance of Library for each Thread?
For example:
public...
Here's the rest of the code
Library Class
package csu.mcdonald;
import java.util.LinkedList;
public class Library {
Hello all!
I'm writing a simple program that consists of 10 threads and a library of 5 books. Each thread checks to see if the library has any books to check out, and enters a FIFO queue if the...
Hello all! This is my first post in this forum, and it's about objects.
I have two separate classes, Point and PlaneCircle. The Point class has two fields, x and y, which are used to construct a...