User Tools

Site Tools


ch2_3_manage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ch2_3_manage [2024/05/04 11:04] adminch2_3_manage [2024/05/04 11:15] (current) admin
Line 142: Line 142:
 3                 ; trivial single value                         3                 ; trivial single value                        
 </code> </code>
- 
  
 ''NAME-PROCESS'' ''NAME-PROCESS''
  
-Cosmetic function for labeling processes as shown on the LabLISP window, accepts one or two arguments. First must be string - the desired name. Second argument is optional integer specifying the process number, if not supplied, the active process is renamed. This function can be only meaningfully used on the active running process, to give information about reason for waiting.+Cosmetic function for labeling processes as shown on the LabLISP window, accepts one or two arguments. First must be string - the desired name. Second argument is optional integer specifying the process number, if not supplied, the active process is renamed. This function can be only meaningfully used on the active running process, to give information about reason for waiting. Returns the string name.
  
 <code lisp> <code lisp>
 .. ..
-(move-motor 100) +(move-motor 100)                ; non-blocking call to start moving 
-(name-process "motor moving"  ; text will appear next to the process number+(name-process "motor moving"  ; text will appear next to the active process
 (wait (motor-moves?))           ; waiting loop for end of physical operation (wait (motor-moves?))           ; waiting loop for end of physical operation
 ..                       ..                      
 </code> </code>
- 
  
 ''KILL'' ''KILL''
  
-''SELF-KILL'' FIXME+Function kills given process, needs one argument, the process number. Cannot be used on the active running process. Meaningful use is killing process stuck in an infinite loop. Returns ''NIL'' always. 
 + 
 +<code lisp> 
 +>(wait t)              ; infinite loop in process #0 
 +>(kill 0)              ; user entry, process #1 
 +p#01>NIL               ; return of the KILL function in process #1 
 +</code> 
 + 
 +''SELF-KILL'' 
 + 
 +This function kills the active running process, no arguments, returns ''NIL''. Although this might seem meaningless, this function is useful in mechanics for aborting script.
  
-these are unique LabLISP multi-process functions+The last three functions are unique for LabLISP multi-process mechanics. 
  
 See also the section 1.2 about multi-process behavior in LabLISP. See also the section 1.2 about multi-process behavior in LabLISP.
  
  
ch2_3_manage.1714842270.txt.gz · Last modified: 2024/05/04 11:04 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki