wait & notify Flashcards

1
Q

What is the basic pattern for wait & notify tasks?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can we use synchronized on primitives?

A

No, we can only synchronize on Objects, such as this keyword or AtomicInteger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly