629件ヒット
[1-100件を表示]
(0.055秒)
ライブラリ
- ビルトイン (258)
- drb (72)
-
irb
/ cmd / chws (24) -
irb
/ context (12) -
irb
/ extend-command (12) - json (12)
-
rdoc
/ context (24) -
rubygems
/ dependency (12) - thwait (54)
-
win32
/ registry (48)
クラス
- Data (6)
-
Gem
:: Dependency (12) -
IRB
:: Context (12) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (12) -
JSON
:: State (12) -
RDoc
:: Context (24) - Thread (221)
- ThreadsWait (54)
-
Win32
:: Registry (24)
モジュール
- DRb (60)
-
IRB
:: ExtendCommandBundle (12) - Kernel (7)
- Process (12)
-
Win32
:: Registry :: Constants (24)
キーワード
-
$ SAFE (7) - CurrentWorkingWorkspace (12)
- DRbServerNotFound (12)
-
HKEY
_ DYN _ DATA (24) -
HKEY
_ PERFORMANCE _ DATA (24) -
NEWS for Ruby 3
. 0 . 0 (5) - TYPES (12)
- ThreadGroup (12)
- [] (12)
- alive? (12)
-
all
_ waits (18) - config (12)
-
current
_ section (12) -
current
_ server (12) - define (6)
- depth (12)
- drb (12)
- empty? (6)
- exec (12)
- execute (12)
- fetch (8)
- finished? (6)
- front (12)
- group (12)
- here? (12)
- inspect (12)
-
install
_ extend _ commands (12) - irb (12)
-
irb
/ cmd / chws (12) - join (6)
-
join
_ nowait (6) - key? (12)
- keys (12)
- new (6)
- priority (12)
- priority= (12)
-
rb
_ thread _ current (12) - rdoc (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ commands / lock _ command (12) -
safe
_ level (7) -
set
_ current _ section (12) -
set
_ trace _ func (12) - status (12)
- stop? (12)
- thread (12)
-
thread
_ variable? (12) -
thread
_ variable _ get (12) -
thread
_ variable _ set (12) - threads (6)
-
to
_ s (8) - uri (12)
検索結果
先頭5件
-
drb (26012.0)
-
分散オブジェクトプログラミングのためのライブラリです。
...ブジェクトのメソッド
を呼びだすことができます。他のマシン上のプロセスにも
アクセスできます。
=== 概要
dRuby は Ruby 専用の分散オブジェクトシステムです。
Ruby のみで記述され、TCP socket のような Ruby 本体が提供する......独自のプロトコルで通信し、他の分散オブジェクトシステム
(CORBA, RMI, .NETなど)との相互運用性はありません。
dRuby は
* 他のプロセスと Ruby オブジェクトのリファレンスをやりとりすること
* そこからのメソッド呼び出......かしてください。
==== サーバ側コード
require 'drb/drb'
# 通信を待ち受ける URI
SERVER_URI="druby://localhost:8787"
class TimeServer
def get_current_time
return Time.now
end
end
# サーバ側でリクエストを受け付けるオブジ... -
Thread
. current -> Thread (21207.0) -
現在実行中のスレッド(カレントスレッド)を返します。
...現在実行中のスレッド(カレントスレッド)を返します。
p Thread.current #=> #<Thread:0x4022e6fc run>... -
VALUE rb
_ thread _ current(void) (12200.0) -
現在実行中のスレッドを返します。
現在実行中のスレッドを返します。 -
DRb
. # current _ server -> DRb :: DRbServer (9301.0) -
「カレントサーバ」を返します。
...サーバとプライマリサーバは一致しますが、複数のサーバを
異なる URI で起動した場合などにはこの2つが異なる場合があります。
@raise DRb::DRbServerNotFound カレントサーバが存在しない場合に発生します
@see DRb.#primary_server... -
RDoc
:: Context # current _ section -> RDoc :: Context :: Section (9201.0) -
現在の section を返します。
現在の section を返します。 -
ThreadsWait
# threads -> Array (9106.0) -
同期されるスレッドの一覧を配列で返します。
...ドの一覧を配列で返します。
使用例
require 'thwait'
threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new(*threads)
p thall.threads
#=> [#<Thread:0x21750 sleep>, #<Thread:0x216c4 sleep>, #<Thread:0x21638 sleep>]... -
RDoc
:: Context # set _ current _ section(title , comment) -> () (9101.0) -
Handle sections
...Handle sections... -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (9016.0) -
irb 中の irb_current_working_workspace コマンドのための拡張を定義したク ラスです。
...irb 中の irb_current_working_workspace コマンドのための拡張を定義したク
ラスです。... -
DRb
:: DRbServerNotFound (9006.0) -
カレントサーバが見付からない場合に発生する例外のクラス
...カレントサーバが見付からない場合に発生する例外のクラス
@see DRb.#current_server...