最速Rubyリファレンスマニュアル検索!
すべて(2)
2.1.0(1)
2.2.0(1)
2件ヒット
[1-2件を表示]
(0.084秒)
トップページ
>
:
t
>
:
Ruby
>
:
Thread
>
:
thread
>
:
インスタンスメソッド
>
:
thread
>
:num_waiting
別のキーワード
drb thread
etc sc_thread_threads_max
tracer get_thread_no
etc sc_thread_cputime
tracer display_thread_id
クラス
Thread
::
Queue
(2)
検索結果
先頭1件
Thread
::
Queue
#
num
_
waiting -> Integer
Thread
::
Queue
#
num
_
waiting -> Integer
(38258.0)
2.1.0
2.2.0
インスタンスメソッド
キューを待っているスレッドの数を返します。
...
キューを待っているスレッドの数を返します。
//emlis
t
[例][
ruby
]{
require '
thread
'
q = SizedQueue.new(1)
q.push(1)
t
=
Thread
.new { q.push(2) }
sleep 0.05 un
t
il
t
.s
t
op?
q.
num_waiting
# => 1
q.pop
t
.join
//}
...
Thread::Queue