From: HarryO Date: 2001-11-16T04:13:24+09:00 Subject: [ruby-talk:25301] Re: ruby/Tk In article <3BF332C6.F9AEA8C1@bigfoot.com>, "MENON Jean-Francois" wrote: > Thx very much I will try that > (but I'm no sure it's a better way, because receiving file events would > allow me to treat all the events (user and IO) in a unified way.) Could you maybe set up three threads? One to accept the file events and one to receive the Tk events, with both threads appending them to the end of an array. The third thread would then read them from the array and process them. Obviously, you'd need to make accesses to the array mutually exclusive.