=================================================================== RCS file: /home/cvs/OpenXM/src/asir-doc/parts/process.texi,v retrieving revision 1.3 retrieving revision 1.5 diff -u -p -r1.3 -r1.5 --- OpenXM/src/asir-doc/parts/process.texi 1999/12/24 04:38:04 1.3 +++ OpenXM/src/asir-doc/parts/process.texi 2000/09/25 05:12:51 1.5 @@ -1,4 +1,4 @@ -@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.2 1999/12/21 02:47:31 noro Exp $ +@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.4 2000/01/13 08:29:56 noro Exp $ \BJP @node 分散計算,,, Top @chapter 分散計算 @@ -500,7 +500,7 @@ input @code{quit}. * ox_push_cmd ox_sync:: * ox_get:: * ox_pops:: -* ox_reset register_handler:: +* ox_reset ox_intr register_handler:: * ox_select:: * ox_flush:: * ox_get_serverinfo:: @@ -608,6 +608,18 @@ UNIX 版においては, @code{ox_launch()} は, @code{DISPLAY} の値を用いる. @item +環境変数 @code{ASIR_RSH} がセットされている場合, サーバの立ち上げプログラム +として@samp{rsh} の代わりにこの変数の値が用いられる. 例えば, + +@example +% setenv ASIR_RSH "ssh -f -X -A " +@end example + +により, サーバの立ち上げに @samp{ssh} が用いられ, +X11 の通信が forwarding される. 詳しくは @samp{ssh} のマニュアルを +参照. + +@item @code{ox_shutdown()} は識別子 @var{id} に対応する遠隔プロセス を終了させる. @@ -632,6 +644,7 @@ ox_xterm*saveLines:1000 により, icon で起動, scrollbar つき, scrollbar で参照できる行数 が最大 1000 行, という指定ができる. + \E \BEG @@ -694,6 +707,18 @@ let @code{Xserver} authorize the relevant hosts. Adding the hosts can be done by command @code{xhost}. @item +If an environment variable @code{ASIR_RSH} is set, +the content of this variable is used as a promgram to invoke +remote servers instead of @var{rsh}. For example, + +@example +% setenv ASIR_RSH "ssh -f -X -A " +@end example + +implies that remote servers are invoked by @samp{ssh} and that +X11 forwarding is enabled. See the manual of @samp{ssh} for the detail. + +@item Some @var{command}'s consume much stack space. You are recommended to set the stack size to about 16MB large in @samp{.cshrc} for safe. To specify the size, put @code{limit stacksize 16m} for an example. @@ -1179,9 +1204,9 @@ The result is pushed to the stack. @fref{ox_pop_cmo ox_pop_local} @end table -\JP @node ox_reset register_handler,,, 分散計算に関する関数 -\EG @node ox_reset register_handler,,, Functions for distributed computation -@subsection @code{ox_reset},@code{register_handler} +\JP @node ox_reset ox_intr register_handler,,, 分散計算に関する関数 +\EG @node ox_reset ox_intr register_handler,,, Functions for distributed computation +@subsection @code{ox_reset},@code{ox_intr},@code{register_handler} @findex ox_reset @findex register_handler @@ -1189,6 +1214,9 @@ The result is pushed to the stack. @item ox_reset(@var{number}) \JP :: プロセスのリセット \EG :: Resets an OpenXM server +@item ox_intr(@var{number}) +\JP :: プロセスのに @code{SIGINT} 送付 +\EG :: Sends @code{SIGINT} to an OpenXM server @item register_handler(@var{func}) \JP :: プロセスのリセットのための関数登録 \EG :: Registers a function callable on a keyboard interrupt. @@ -1223,6 +1251,13 @@ The result is pushed to the stack. 計算途中での強制中断に用いる. @item +@code{ox_intr()} は, 識別子 @var{number} のプロセスをに対して +@code{SIGINT} を送付する. @code{SIGINT} に対するプロセスの動作は +規定されていないが, @samp{ox_asir} の場合, ただちに debug mode に +入る. X 上で動作している場合, デバッグコマンド入力用のウィンドウが +ポップアップする. + +@item @code{register_handler()} は, @kbd{C-c} などによる割り込みの際に, @kbd{u} を指定することで, 無引数ユーザ定義関数 @var{func()} が呼び出される ように設定する. この関数に, @code{ox_reset()} を呼び出させることで, @@ -1249,6 +1284,12 @@ Even if a process is running, the execution is safely It can be also used to interrupt a distributed computation. @item +@code{ox_intr()} sends @code{SIGINT} to a process whose identifier is +@var{number}. The action of a server against @code{SIGINT} is not +specified in @b{OpenXM}. @samp{ox_asir} immediately enters the debug +mode and pops up an window to input debug commands on X window system. + +@item @code{register_handler()} registers a function @var{func()}. If @kbd{u} is specified on a keybord interrupt, @var{func()} is executed before returning the toplevel. @@ -1483,7 +1524,7 @@ Usually @b{OX_SYNC_BALL} will be ignored by the peer. @table @t \JP @item 参照 \EG @item References -@fref{ox_rpc ox_cmo_rpc ox_execute_string}, @fref{ox_reset register_handler} +@fref{ox_rpc ox_cmo_rpc ox_execute_string}, @fref{ox_reset ox_intr register_handler} @end table \JP @node ox_get,,, 分散計算に関する関数 @@ -2142,5 +2183,5 @@ plot*form*ydone*background:white @table @t \JP @item 参照 \EG @item References -@fref{ox_launch ox_launch_nox ox_shutdown}, @fref{ox_reset register_handler} +@fref{ox_launch ox_launch_nox ox_shutdown}, @fref{ox_reset ox_intr register_handler} @end table