noslenj123 has asked for the wisdom of the Perl Monks concerning the following question:
Ah, a perfect time for me to learn Tk! So I put together this nice interface with the top half for server1 and the bottom have for server2. Each has a button to start and stop the server and each a list box for output.
Then I started to implement the servers as Threads and then the trouble began with various kinds of crashes. A SuperSearch provided some info here that threads may not get along with Tk.
I tried launching a new thread in a sub that was called when clicking a button. That seemed okay but the thread tries to log a message to the listbox and that appears to be a problem even when I declare the sub as "sub name : locked {}".
So I'm looking for other strategies for acomplishing my task. Threads, no threads, it doesn't matter. It has to run on Win2k or WinXp. I'm using perl 5.8.7. I need to be able to start and stop the servers at any time.
Oh wise Monks, can you show me a path?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to run multiple server processes under Tk?
by thundergnat (Deacon) on Sep 20, 2005 at 00:59 UTC | |
|
Re: How to run multiple server processes under Tk?
by graff (Chancellor) on Sep 20, 2005 at 01:24 UTC | |
|
Re: How to run multiple server processes under Tk?
by zentara (Cardinal) on Sep 20, 2005 at 12:01 UTC | |
by noslenj123 (Scribe) on Sep 20, 2005 at 17:22 UTC | |
by zentara (Cardinal) on Sep 20, 2005 at 17:55 UTC | |
|
Re: How to run multiple server processes under Tk?
by noslenj123 (Scribe) on Sep 20, 2005 at 04:30 UTC |