クラス
-
Resolv
:: DNS :: Resource :: IN :: SRV (24) - Socket (12)
- Thread (24)
モジュール
- Etc (204)
- Process (24)
-
Socket
:: Constants (12) - Syslog (12)
-
Syslog
:: Macros (24)
キーワード
-
LOG
_ MASK (12) -
LOG
_ UPTO (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
SC
_ ADVISORY _ INFO (12) -
SC
_ ASYNCHRONOUS _ IO (12) -
SC
_ AVPHYS _ PAGES (12) -
SC
_ DELAYTIMER _ MAX (12) -
SC
_ FSYNC (12) -
SC
_ MEMORY _ PROTECTION (12) -
SC
_ PHYS _ PAGES (12) -
SC
_ PRIORITY _ SCHEDULING (12) -
SC
_ SHARED _ MEMORY _ OBJECTS (12) -
SC
_ SYMLOOP _ MAX (12) -
SC
_ SYNCHRONIZED _ IO (12) -
SC
_ THREAD _ KEYS _ MAX (12) -
SC
_ THREAD _ PRIORITY _ SCHEDULING (12) -
SC
_ TRACE _ SYS _ MAX (12) -
SC
_ TTY _ NAME _ MAX (12) -
SC
_ TYPED _ MEMORY _ OBJECTS (12) -
SC
_ XOPEN _ CRYPT (12) -
SO
_ PRIORITY (24) - getpriority (12)
- log (12)
- new (12)
- priority= (12)
-
rb
_ thread _ priority (12) -
rb
_ thread _ priority _ set (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) - setpriority (12)
検索結果
先頭5件
-
Thread
# priority -> Integer (24236.0) -
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。
...レッドの
priority を引き継ぎます。
@param val スレッドの優先度を指定します。プラットフォームに依存します。
//emlist[例][ruby]{
Thread.current.priority # => 0
count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1
b =......Thread.new do
loop { count2 += 1 }
end
b.priority = -2
count1 = count2 = 0 # reset
sleep 1 # => 1
count1 # => 13809431
count2 # => 11571921
//}... -
Resolv
:: DNS :: Resource :: IN :: SRV # priority -> Integer (24213.0) -
ホストの優先順位を返します。
...ホストの優先順位を返します。
クライアントは利用可能なホストの中で最も priority が
小さい数値のホストを利用しなければなりません。
priority が同じならば Resolv::DNS::Resource::IN::SRV#weight
で定義されるようにホストを選ぶ... -
Thread
# priority=(val) (12236.0) -
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。
...レッドの
priority を引き継ぎます。
@param val スレッドの優先度を指定します。プラットフォームに依存します。
//emlist[例][ruby]{
Thread.current.priority # => 0
count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1
b =......Thread.new do
loop { count2 += 1 }
end
b.priority = -2
count1 = count2 = 0 # reset
sleep 1 # => 1
count1 # => 13809431
count2 # => 11571921
//}... -
Socket
:: Constants :: SO _ PRIORITY -> Integer (12217.0) -
The protocol-defined priority for all packets on this socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...The protocol-defined priority for all packets on this socket。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see socket(7linux), ip(7linux)... -
Socket
:: SO _ PRIORITY -> Integer (12217.0) -
The protocol-defined priority for all packets on this socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...The protocol-defined priority for all packets on this socket。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see socket(7linux), ip(7linux)... -
Process
. # getpriority(which , who) -> Integer (12200.0) -
which に従いプロセス、プロセスグループ、ユーザのいずれかの現在のプライオリティを整数で返します。
...ザ ID のいずれかを整数で指定します。
@raise Errno::EXXX プライオリティの取得に失敗した場合に発生します。
@raise NotImplementedError メソッドが現在のプラットフォームで実装されていない場合に発生します。
@see getpriority(2)... -
Process
. # setpriority(which , who , prio) -> 0 (12200.0) -
プロセス、プロセスグループ、 ユーザのいずれかの現在のプライオリティを設定します 。プライオリティの設定に成功した場合は 0 を返します。
...身のプライオリティを 10 に下げます。
すでに 10 よりもプライオリティが低く、
Errno::EACCES となった場合には無視して実行を続けます。
begin
Process.setpriority(Process::PRIO_PROCESS, 0, 10)
rescue Errno::EACCES
end
@see setpriority(2)... -
static VALUE rb
_ thread _ priority(VALUE thread) (12200.0) -
-
static VALUE rb
_ thread _ priority _ set(VALUE thread , VALUE prio) (12200.0) -