Category Archives: Tech

Monitors in concurrent computing – 2 of 3

Monitor usage:

acquire(m); // Acquire this monitor's lock.
while (!p) { // While the condition/predicate/assertion that we are waiting for is not true...
wait(m, cv); // Wait on this monitor's lock and condition variable.
}

// ... Critical section of code goes here ...

signal(cv2); //-- OR -- notifyAll(cv2); cv2 might be the same as cv or different.
release(m); // Release this monitor's lock.

Continue reading: Monitors in concurrent computing – 2 of 3 ▶▶

Source code in movies

1) Terminator [1984]: Your future is in his hands.

Terminator_1984

On the T-800’s head-up display, the assembly code is based on the 6502 8-bit microprocessor so either James Cameron wanted the Terminator from 2029 to be running on Apple II or perhaps Cyberdyne Systems itself chose Apple II for their model 101 series 800 Terminators which probably seemed cool back in 1984 but not anymore and certainly it cannot be running on vintage Apple II in 2029 unless Steve Jobs reincarnated himself and launched upgraded series of Apple computers to beat OS X using 6502. The scene occurs about 60 minutes into the movie.

Continue reading: Source code in movies ▶▶

Page 1 of 212