Re: Sleep in a multithreaded environment
- From: Me Me <emanuelef@xxxxxxxxxx>
- Date: Mon, 30 Jun 2008 04:45:33 -0500
Zhukov Pavel wrote:
On Mon, Jun 30, 2008 at 1:07 PM, Me Me <emanuelef@xxxxxxxxxx> wrote:
Thanks a lot in advance
end
k = n
end
--
Posted via http://www.ruby-forum.com/.
pipe=IO.popen("executable.exe")
io=select([io],nil,nil,10) #10 - timeout
if io==nil
puts "DEAD"
t1.raise("close")
end
Hi,
thanks for answering, I tried your code but I get:
test_th.rb:20:in `select': can't convert nil into IO (TypeError)
Besides it's not clear to me what is done by the select.
Do I still need the thread t1 then?
Bye
--
Posted via http://www.ruby-forum.com/.
.
- Follow-Ups:
- Re: Sleep in a multithreaded environment
- From: Zhukov Pavel
- Re: Sleep in a multithreaded environment
- References:
- Sleep in a multithreaded environment
- From: Me Me
- Re: Sleep in a multithreaded environment
- From: Zhukov Pavel
- Sleep in a multithreaded environment
- Prev by Date: Re: [ANN] ruby-oci8 1.0.2
- Next by Date: Re: Sleep in a multithreaded environment
- Previous by thread: Re: Sleep in a multithreaded environment
- Next by thread: Re: Sleep in a multithreaded environment
- Index(es):