Share Tips, Code Samples, etc. with the Visual Prolog community.
User avatar
José A. Becerril
Posts: 2
Joined: 22 Apr 2000 23:01

To sleep or not to sleep.

Unread post by José A. Becerril »

Code: Select all

    ... uncertainProcess() ...     facts       sleeping:integer:=0.       predicates       increaseSleep:().       clauses       increaseSleep():-       sleeping<500,       sleeping:=sleeping+10,         uncertainProcess(),!.             increaseSleep():-       stdio::write("uncertainProcess failed"),!.                    predicates      uncertainProcess:().      clauses      uncertainProcess():-      programControl::sleep(sleeping),      file::existfile("myfile.txt"),      stdio::write("I have seen the file"),!.            uncertainProcess():-       increaseSleep(),!.
Post Reply