wait & notify Flashcards
1
Q
What is the basic pattern for wait & notify tasks?
A
2
Q
Can we use synchronized on primitives?
A
No, we can only synchronize on Objects, such as this keyword or AtomicInteger
What is the basic pattern for wait & notify tasks?
Can we use synchronized on primitives?
No, we can only synchronize on Objects, such as this keyword or AtomicInteger