<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=PHP_pcntl_fork</id>
	<title>PHP pcntl fork - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=PHP_pcntl_fork"/>
	<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=PHP_pcntl_fork&amp;action=history"/>
	<updated>2026-06-22T21:52:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=PHP_pcntl_fork&amp;diff=270&amp;oldid=prev</id>
		<title>Chubbard: /* Info to remember for pcntl_fork in PHP */</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=PHP_pcntl_fork&amp;diff=270&amp;oldid=prev"/>
		<updated>2023-05-19T23:02:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Info to remember for pcntl_fork in PHP&lt;/span&gt;&lt;/span&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:02, 19 May 2023&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;===Info to remember for pcntl_fork in PHP===&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;===Info to remember for pcntl_fork in PHP===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;This was from chatGPT question:&lt;/ins&gt;&lt;/div&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;When using the `pcntl_fork()` function in PHP, the mode in which the fork operation is performed can be either blocking or non-blocking. Here's the difference between the two:&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;When using the `pcntl_fork()` function in PHP, the mode in which the fork operation is performed can be either blocking or non-blocking. Here's the difference between the two:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff::1.12:old-269:rev-270 --&gt;
&lt;/table&gt;</summary>
		<author><name>Chubbard</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=PHP_pcntl_fork&amp;diff=269&amp;oldid=prev</id>
		<title>Chubbard: Created page with &quot;===Info to remember for pcntl_fork in PHP===  When using the `pcntl_fork()` function in PHP, the mode in which the fork operation is performed can be either blocking or non-blocking. Here's the difference between the two:  1. Blocking Mode:    In blocking mode, the parent process waits for the child process to complete before continuing its execution. When `pcntl_fork()` is called in blocking mode, the parent process will pause until the child process finishes its execut...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=PHP_pcntl_fork&amp;diff=269&amp;oldid=prev"/>
		<updated>2023-05-19T23:02:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Info to remember for pcntl_fork in PHP===  When using the `pcntl_fork()` function in PHP, the mode in which the fork operation is performed can be either blocking or non-blocking. Here&amp;#039;s the difference between the two:  1. Blocking Mode:    In blocking mode, the parent process waits for the child process to complete before continuing its execution. When `pcntl_fork()` is called in blocking mode, the parent process will pause until the child process finishes its execut...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Info to remember for pcntl_fork in PHP===&lt;br /&gt;
&lt;br /&gt;
When using the `pcntl_fork()` function in PHP, the mode in which the fork operation is performed can be either blocking or non-blocking. Here's the difference between the two:&lt;br /&gt;
&lt;br /&gt;
1. Blocking Mode:&lt;br /&gt;
   In blocking mode, the parent process waits for the child process to complete before continuing its execution. When `pcntl_fork()` is called in blocking mode, the parent process will pause until the child process finishes its execution and exits. The parent process will receive the exit status of the child process and can perform any necessary cleanup or further actions based on that status.&lt;br /&gt;
&lt;br /&gt;
2. Non-blocking Mode:&lt;br /&gt;
   In non-blocking mode, the parent process continues its execution immediately after forking the child process, without waiting for the child process to complete. When `pcntl_fork()` is called in non-blocking mode, the parent process will receive the process ID (PID) of the child process and can continue with its execution. The child process will execute concurrently with the parent process. In this mode, it's the responsibility of the parent process to handle the coordination and synchronization with the child process, if needed, using mechanisms such as signals, pipes, or shared memory.&lt;br /&gt;
&lt;br /&gt;
Choosing between blocking and non-blocking mode depends on the specific requirements of your application:&lt;br /&gt;
&lt;br /&gt;
- Blocking mode is useful when you want to ensure that the parent process has the results of the child process before proceeding further. This mode allows for a simpler control flow, as the parent process waits for the child process to finish.&lt;br /&gt;
&lt;br /&gt;
- Non-blocking mode is useful when you want the parent process to continue its execution immediately and potentially perform other tasks concurrently with the child process. This mode allows for parallel execution and can be beneficial when the child process performs independent or long-running tasks.&lt;br /&gt;
&lt;br /&gt;
It's important to note that `pcntl_fork()` is a low-level function that provides process forking capabilities. Handling child processes and managing synchronization between them requires additional programming using mechanisms such as signals, shared memory, or inter-process communication (IPC) techniques like pipes or message queues.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Chubbard</name></author>
	</entry>
</feed>