IF Computer > IF/Prolog > Manuals > IF/Prolog V4.1 マニュアル > イントロダクション > IF/Prolog 4.0のレリースノート > 信号処理

信号処理

IF/Prolog by Siemens
MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

信号処理の構造は、IF/Prolog 4.0にて、全く新しく設計されました。多くの信号ソースの処理が可能になりました。信号は、述語が有効になる直前のプログラム実行時にキャッチされます。ユーザは、信号ソース毎に信号ハンドラを定義することができます。信号が生じると信号ハンドラが実行され、ハンドラ終了後は元のプログラムの実行が継続されます。

[user]. signal_handler(alarm,(write('ALARM n'),abort)). f :- f. end of file. consult: file stdin consulted in 33 sec.

yes ?- alarm(2),f. ALARM

abort ?-

document: http://www.ifcomputer.co.jp/IFProlog/Manuals/v4.1/introduction/rel4.0/signal/print_en.html
published 2008/7/21 update 1994/7/21 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS