Hi,

[snipped code]
------------
This works, but the problem is when I exit the program, I get this
"warning" printed to STDOUT:
d:\>gui100.pl
A thread exited while 2 threads were running.

Anyone know how stop this?  Also, now that I have 5.8, I hope to be able
to use threads more often.  Can anyone give any "gotchas" they have
found?
-------------

No sure why it's not working - as for gotchas I know a few:)

Some versions of 5.8.x  are better than other versions of 5.8 at thread
support, so I would spend a little time on finding out which version suites
you best - I had heard good reports on 5.8.3, but then others suggested it
had some significant problems. The main gotya for me is that you can't share
objects (blessed references, hashes and arrays) across threads - your stuck
with basic scalars, which in a gui environment is a real pain since you
typically want a worker thread to do the 'work', and report the 'results'
back to the gui when complete. There are "work arounds" to this problem
(serialisation) but I gave up in the end.

Hope you have better luck than I did.

Cheers,

jez.


Reply via email to