るりまサーチ

最速Rubyリファレンスマニュアル検索!
1683件ヒット [1-100件を表示] (0.032秒)
トップページ > クエリ:priority[x]

別のキーワード

  1. socket so_priority
  2. etc sc_priority_scheduling
  3. etc sc_thread_priority_scheduling
  4. srv priority
  5. resolv priority

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Thread#priority -> Integer (18136.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 (18113.0)

ホストの優先順位を返します。

...ホストの優先順位を返します。

クライアントは利用可能なホストの中で最も priority
小さい数値のホストを利用しなければなりません。

priority
が同じならば Resolv::DNS::Resource::IN::SRV#weight
で定義されるようにホストを選ぶ...

Thread#priority=(val) (6136.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 (6117.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 (6117.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 (6100.0)

which に従いプロセス、プロセスグループ、ユーザのいずれかの現在のプライオリティを整数で返します。

...ザ ID のいずれかを整数で指定します。

@raise Errno::EXXX プライオリティの取得に失敗した場合に発生します。

@raise NotImplementedError メソッドが現在のプラットフォームで実装されていない場合に発生します。

@see getpriority(2)...

Process.#setpriority(which, who, prio) -> 0 (6100.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) (6100.0)

static VALUE rb_thread_priority_set(VALUE thread, VALUE prio) (6100.0)

Etc::SC_PRIORITY_SCHEDULING -> Integer (3102.0)

Etc.#sysconf の引数に指定します。

Etc.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。

絞り込み条件を変える

<< 1 2 3 ... > >>