Gasan Guseynov wrote:Let's imagine that on the first run Machine thread took a lot of time to Send machine steps to hardware (line 20), meanwhile Operator already done Get shape from user (line 4) and is ready to acquire the lock (line 5).
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Gasan Guseynov wrote:@Anayonkar Yes, Operator finished it's job, but it repeats the loop. And it can reach line 5 before the Machine will release lock.
Gasan Guseynov wrote:@Anayonkar Yes, Operator finished it's job, but it repeats the loop. And it can reach line 5 before the Machine will release lock.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Henry Wong wrote:These extra notifications will be lost too.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Gasan Guseynov wrote:Probably I was to hurry to write a post, because a couple of pages later in a book there is some sort of clarification on that code regarding that problem and also there is provided a better version that addresses the problem. Probably, the only flaw I see now is that authors didn't aforementioned that the first code has a problem and they'll address that later.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Helen Ma wrote:For the exam, this objective is removed.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Consider Paul's rocket mass heater. |