ch2_1_wait
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ch2_1_wait [2022/02/25 00:15] – admin | ch2_1_wait [2024/05/05 10:54] (current) – admin | ||
---|---|---|---|
Line 18: | Line 18: | ||
The process currently in the waiting loop will be reported in the process list as " | The process currently in the waiting loop will be reported in the process list as " | ||
- | The mechanism behind waiting and LabLISP multitasking is following: When multiple LabLISP eval processes are running in the environment, | + | The mechanism behind waiting and LabLISP multitasking is following: When multiple LabLISP eval processes are running in the environment, |
This LabLISP behavior is bit experimental and arbitrary, and might lead to weird results if there would be processes with simple conditions together with others having complex waiting conditions. The actual Qt/C++ sleep is called only after the evaluation of the condition returns T, but the evaluation of the condition might need several eval calls and the process control switches between the processes after individual evals. So the evaluation of the complex condition will be slowed down by the repeated sleep calls in the other other processes, where it will happen more frequently due to simple conditions there. | This LabLISP behavior is bit experimental and arbitrary, and might lead to weird results if there would be processes with simple conditions together with others having complex waiting conditions. The actual Qt/C++ sleep is called only after the evaluation of the condition returns T, but the evaluation of the condition might need several eval calls and the process control switches between the processes after individual evals. So the evaluation of the complex condition will be slowed down by the repeated sleep calls in the other other processes, where it will happen more frequently due to simple conditions there. |
ch2_1_wait.1645773329.txt.gz · Last modified: 2022/02/25 00:15 by admin