るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.041秒)

別のキーワード

  1. drb thread
  2. thread pending_interrupt?
  3. etc sc_thread_cputime
  4. thread backtrace_locations
  5. etc sc_thread_attr_stacksize

ライブラリ

検索結果

Thread#alive? -> bool (48193.0)

スレッドが「生きている」時、true を返します。

...」時、true を返します。

例:
thr = Thread.new { }
thr.join # => #<Thread:0x401b3fb0 dead>
Thread
.current.alive? # => true
thr.alive? # => false

Thread
#status が真を返すなら、このメソッドも真です。

@see Thread#status, Thread#stop?...