I just need to be absolutely sure that Linux behaves in an identical fashion in this regard? I am pretty sure it will do, but would be grateful if someone could run the following on Linux for me just to be absolutely 100% certain!
Set the threadsafe switch, let the program run for a moment or two just to be sure that both threads are running. Then close the messagerequester to have the first thread killed. Hopefully, thread2 will continue on its merry way!
Code: Select all
Global gCount
Procedure AlertThread(Parameter)
gCount + 1
a = gCount
If a =1
CreateThread(@AlertThread(), 154)
EndIf
Repeat
Debug "Thread " + Str(a)
Delay(1000)
ForEver
EndProcedure
thdID = CreateThread(@AlertThread(), 154)
MessageRequester("", "Click to destroy the first thread!", 0)
KillThread(thdID)
MessageRequester("", "Click to end.", 0)


