2024-03-23 13:40:50 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
2024-03-23 15:41:41 +00:00
<meta name="viewport" content="width=device-width">
2024-03-23 13:40:50 +00:00
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre style="font-family: courier, monospace; font-size: 10pt;">
<a name="l1"></a><span class=cFA>/* Graphics Not Rendered in HTML */</span><span class=cF0>
<a name="l2"></a></span><span class=cF4> </span><a href="/Wb/Kernel/Job.HC#l397"><span class=cF4>PopUpPrint</span></a><span class=cF4> </span><a href="/Wb/Kernel/KTask.HC#l424"><span class=cF4>User</span></a><span class=cF4> </span><a href="/Wb/Compiler/CMain.HC#l605"><span class=cF4>ExePrint</span></a><span class=cF0>
<a name="l3"></a>
<a name="l4"></a>
<a name="l5"></a>
<a name="l6"></a></span><span class=cF4> </span><a href="/Wb/Kernel/Job.HC#l376"><span class=cF4>PopUp</span></a><span class=cF4> </span><a href="/Wb/Compiler/CMain.HC#l571"><span class=cF4>ExePutS</span></a><span class=cF0>
<a name="l7"></a>
<a name="l8"></a>
<a name="l9"></a>
<a name="l10"></a> </span><a href="/Wb/Kernel/KMain.HC#l135"><span class=cF4>Core0 AdamTask</span></a><span class=cF4> </span><a href="/Wb/Kernel/KTask.HC#l406"><span class=cF4>SrvCmdLine</span></a><span class=cF4> </span><a href="/Wb/Kernel/MultiProc.HC#l194"><span class=cF4>AP SethTask</span></a><span class=cF4> </span><a href="/Wb/Kernel/KTask.HC#l414"><span class=cF4>UserCmdLine</span></a><span class=cF0>
<a name="l11"></a>
<a name="l12"></a>
<a name="l13"></a>
<a name="l14"></a>
<a name="l15"></a>
<a name="l16"></a>
<a name="l17"></a></span><span class=cF4> </span><a href="/Wb/Kernel/KTask.HC#l368"><span class=cF4>SrvTaskCont</span></a><span class=cF4> </span><a href="/Wb/Kernel/KTask.HC#l384"><span class=cF4>UserTaskCont</span></a><span class=cF0>
<a name="l18"></a>
<a name="l19"></a>
<a name="l20"></a>
<a name="l21"></a></span><span class=cF4> </span><a href="/Wb/Kernel/Job.HC#l349"><span class=cF4>JobsHndlr</span></a><span class=cF0>
<a name="l22"></a>
<a name="l23"></a>
<a name="l24"></a>
<a name="l25"></a></span><span class=cF4> </span><a href="/Wb/Kernel/Job.HC#l269"><span class=cF4>JobRunOne</span></a><span class=cF4> </span><a href="/Wb/Kernel/Job.HC#l269"><span class=cF4>JobRunOne</span></a><span class=cF4> </span><a href="/Wb/Kernel/KTask.HC#l302"><span class=cF4>ExeCmdLine</span></a><span class=cF4> </span><a href="/Wb/Kernel/KTask.HC#l302"><span class=cF4>ExeCmdLine</span></a><span class=cF0>
<a name="l26"></a>
<a name="l27"></a>
<a name="l28"></a>
<a name="l29"></a>
<a name="l30"></a></span><a href="/Wb/Kernel/KernelA.HH#l3147"><span class=cF4>CJob</span></a><span class=cF0> nodes are one of </span><a href="/Wb/Kernel/KernelA.HH#l3140"><span class=cF4>five types</span></a><span class=cF0>. User applications deal with text or msgs. </span><span class=cF4>
<a name="l31"></a></span><a href="/Wb/Kernel/Job.HC#l269"><span class=cF4>JobRunOne</span></a><span class=cF0>() will call a function, spawn a task or execute some text src code.
<a name="l32"></a>
<a name="l33"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>JOBT_TEXT_INPUT</span><span class=cF0> 0 </span><span class=cF2>//</span><a href="/Wb/Kernel/Job.HC#l75"><span class=cF4>TaskText</span></a><span class=cF2>()</span><span class=cF0> </span><span class=cF2>Feed StdIn </span><span class=cF0>
<a name="l34"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>JOBT_MSG</span><span class=cF0> 1 </span><span class=cF2>//</span><a href="/Wb/Kernel/Job.HC#l119"><span class=cF4>TaskMsg</span></a><span class=cF2>()</span><span class=cF0> </span><span class=cF2>Post msg </span><span class=cF0>
<a name="l35"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>JOBT_EXE_STR</span><span class=cF0> 2 </span><span class=cF2>//</span><a href="/Wb/Kernel/Job.HC#l39"><span class=cF4>TaskExe</span></a><span class=cF2>()</span><span class=cF0> </span><span class=cF2>Compile & execute src code text</span><span class=cF0>
<a name="l36"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>JOBT_CALL</span><span class=cF0> 3 </span><span class=cF2>//</span><a href="/Wb/Kernel/MultiProc.HC#l213"><span class=cF4>JobQue</span></a><span class=cF2>()</span><span class=cF0> </span><span class=cF2>Tell MP to call function</span><span class=cF0>
<a name="l37"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>JOBT_SPAWN_TASK</span><span class=cF0> 4 </span><span class=cF2>//</span><a href="/Wb/Kernel/KTask.HC#l242"><span class=cF4>Spawn</span></a><span class=cF2>()</span><span class=cF0> </span><span class=cF2>Tell MP to spawn task</span><span class=cF0>
<a name="l38"></a>
<a name="l39"></a>Several </span><span class=cF9><u>other routines</u></span><span class=cF0> include a call to </span><a href="/Wb/Kernel/Job.HC#l349"><span class=cF4>JobsHndlr</span></a><span class=cF0>() that gives them powerful
<a name="l40"></a>ability to execute servant cmds.
</span></pre></body>
</html>