8

How can I create an infinite loop without killing program execution?

view full story
linux-howto

http://stackoverflow.com – I have a program whose logic is the same as the dummy sample I've included here. I've tried a simply while (1) which doesn't run (at least the UI is not shown). This sample runs the while loop based on a variable setting which is changed by an addEventListener() which should terminate the loop. However, it acts just as the while (1). Simply stated, what I need to do is wait for a password input and verify that it is a match. If not, I continue to loop. If it is a match, the program proceeds to another loop (not shown in the sample), which needs to run as long as the program runs. This second w (HowTos)