in reply to Re: Perl/Tk while {1} and a responsive UI
in thread Perl/Tk while {1} and a responsive UI

Tk and threads are very hard to cooperate, they are mostly not compatible, as many sources say.

To write threaded Tk program, many many actions should be taken

  • Comment on Re^2: Perl/Tk while {1} and a responsive UI

Replies are listed 'Best First'.
Re^3: Perl/Tk while {1} and a responsive UI
by spurperl (Priest) on Apr 24, 2005 at 11:51 UTC
    Tk with threads are nothing to fear of. Yes, it's not trivial. But GUIs + threads are hardly a triviality in any language. And yet, it's being done, and many programs have GUIs and several threads, including in Perl/Tk.
      well, your second sentence immediately makes untrue first sentence :)

      No offence!
      Yet I appplause very much your effort with Marrying Tk, threads and SerialPort - a COM port monitor.

      But you either "nothing to fear of", or "not trivial" (meaning you must take special care of threading, especially coonsidering weak internal threads in perl, so you must always switch to OS API for reliable threads)

      As to add a little bit, Tcl::Tk is more lightweight than Tk , so your experiments on trying Tk to have less CPU cycles (as to allow more COM processing) are better done with Tcl::Tk.