<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.amc-os.com/index.php?action=history&amp;feed=atom&amp;title=Processes</id>
	<title>Processes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.amc-os.com/index.php?action=history&amp;feed=atom&amp;title=Processes"/>
	<link rel="alternate" type="text/html" href="http://wiki.amc-os.com/index.php?title=Processes&amp;action=history"/>
	<updated>2026-05-04T01:18:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>http://wiki.amc-os.com/index.php?title=Processes&amp;diff=99&amp;oldid=prev</id>
		<title>Kindman at 14:50, 29 July 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.amc-os.com/index.php?title=Processes&amp;diff=99&amp;oldid=prev"/>
		<updated>2020-07-29T14:50:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:50, 29 July 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Internal functions for PID management are :  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Internal functions for PID management are :  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;PID PSI_AllocatePID(PSI_ENTRY *)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;PID PSI_AllocatePID(PSI_ENTRY *)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;void PSI_ReleasePID(PID)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void PSI_ReleasePID(PID)&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To get the PSI_ENTRY for a specific PID, an index table called &amp;lt;code&amp;gt;PSI_QuickTable&amp;lt;/code&amp;gt; is maintained.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To get the PSI_ENTRY for a specific PID, an index table called &amp;lt;code&amp;gt;PSI_QuickTable&amp;lt;/code&amp;gt; is maintained.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kindman</name></author>
	</entry>
	<entry>
		<id>http://wiki.amc-os.com/index.php?title=Processes&amp;diff=98&amp;oldid=prev</id>
		<title>Kindman: Created page with &quot;== Process definition in AMC-OS ==  A process is an instance of an application. Processes are managed in AMC-OS by the PSI &#039;&#039;(Processes System Interface)&#039;&#039; mo...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.amc-os.com/index.php?title=Processes&amp;diff=98&amp;oldid=prev"/>
		<updated>2020-07-29T14:49:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Process definition in AMC-OS ==  A process is an instance of an &lt;a href=&quot;/index.php?title=Applications&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Applications (page does not exist)&quot;&gt;application&lt;/a&gt;. Processes are managed in AMC-OS by the PSI &amp;#039;&amp;#039;(Processes System Interface)&amp;#039;&amp;#039; mo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Process definition in AMC-OS ==&lt;br /&gt;
&lt;br /&gt;
A process is an instance of an [[Applications|application]].&lt;br /&gt;
Processes are managed in AMC-OS by the PSI &amp;#039;&amp;#039;(Processes System Interface)&amp;#039;&amp;#039; module.&lt;br /&gt;
&lt;br /&gt;
It is characterized by :&lt;br /&gt;
* a process ID &amp;#039;&amp;#039;(PID)&amp;#039;&amp;#039; and its parent process ID&lt;br /&gt;
* an owner &amp;#039;&amp;#039;(User ID)&amp;#039;&amp;#039;&lt;br /&gt;
* a list of execution [[Threads|threads]]&lt;br /&gt;
* a page directory defining the address space used by all execution threads&lt;br /&gt;
* all resource handles shared by all threads in the process.&lt;br /&gt;
&lt;br /&gt;
== PSI (Processes System Interface) ==&lt;br /&gt;
&lt;br /&gt;
Each process is defined by a &amp;lt;code&amp;gt;PSI_ENTRY&amp;lt;/code&amp;gt; containing all process information.&lt;br /&gt;
&lt;br /&gt;
=== PID ===&lt;br /&gt;
&lt;br /&gt;
A PID is a 16-bit unsigned integer, uniquely assigned to each process, with a maximum of &amp;lt;code&amp;gt;PSI_MAX_PROCESSES&amp;lt;/code&amp;gt;.&lt;br /&gt;
PSI maintains a linked list of unsorted used and free PIDs, allowing allocation and release of PIDs in &amp;#039;&amp;#039;O(1)&amp;#039;&amp;#039;, by respectively removing or adding the PID at the beginning of the list.&lt;br /&gt;
Both list share the same global table called &amp;lt;code&amp;gt;StatusTable&amp;lt;/code&amp;gt; with two initial pointers, one for the linked list of free entries (&amp;lt;code&amp;gt;firstFreeEntry&amp;lt;/code&amp;gt;), one for the linked list of used entries (&amp;lt;code&amp;gt;firstUsedEntry&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Internal functions for PID management are : &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
PID PSI_AllocatePID(PSI_ENTRY *)&lt;br /&gt;
void PSI_ReleasePID(PID)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get the PSI_ENTRY for a specific PID, an index table called &amp;lt;code&amp;gt;PSI_QuickTable&amp;lt;/code&amp;gt; is maintained.&lt;/div&gt;</summary>
		<author><name>Kindman</name></author>
	</entry>
</feed>