Posted 30 September 2012 - 03:49 PM
I wrote a simple program to test functions and the parallel API.
The goal of the program is to have a blinking "A" and a blinking "B" near eachother on the screen, their blinkings controlled by separate functions, but ran simultaneously with the help of the Parallel API.
My problem is that only the "B" blinks, the "A" sits there doing nothing.
Here is the code I wrote:
http://pastebin.com/WQgHrUGj
Do you know what the problem might be?
The goal of the program is to have a blinking "A" and a blinking "B" near eachother on the screen, their blinkings controlled by separate functions, but ran simultaneously with the help of the Parallel API.
My problem is that only the "B" blinks, the "A" sits there doing nothing.
Here is the code I wrote:
http://pastebin.com/WQgHrUGj
Do you know what the problem might be?