<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to HelloWorld</title><link>https://sourceforge.net/p/parapascal/wiki/HelloWorld/</link><description>Recent changes to HelloWorld</description><atom:link href="https://sourceforge.net/p/parapascal/wiki/HelloWorld/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 29 Aug 2011 14:24:01 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/parapascal/wiki/HelloWorld/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage HelloWorld modified by cohadar</title><link>https://sourceforge.net/p/parapascal/wiki/HelloWorld/</link><description>&lt;pre&gt;--- v4 
+++ v5 
@@ -38,3 +38,4 @@
 These settings enable you to see the "race effect" much more quickly.
 
 ParaPascal is by default set to simulate 4 processors and since you had only 2 processes (one for "hello" and one for "world") there was no race effect because 2 distinct processors simply executed tasks in the order they got them.
+So if you want to see race effect when simulating 4 processors you need at least 5 processes.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cohadar</dc:creator><pubDate>Mon, 29 Aug 2011 14:24:01 -0000</pubDate><guid>https://sourceforge.net58f48a60e2abbb492e1d761b40ef001b6f443261</guid></item><item><title>WikiPage HelloWorld modified by cohadar</title><link>https://sourceforge.net/p/parapascal/wiki/HelloWorld/</link><description>&lt;pre&gt;--- v3 
+++ v4 
@@ -37,4 +37,4 @@
 
 These settings enable you to see the "race effect" much more quickly.
 
-ParaPascal's is by default set to simulate 4 processors and since you had only 2 processes (one for "hello" and one for "world") there was no race effect because 2 distinct processors simply executed tasks as they got them.
+ParaPascal is by default set to simulate 4 processors and since you had only 2 processes (one for "hello" and one for "world") there was no race effect because 2 distinct processors simply executed tasks in the order they got them.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cohadar</dc:creator><pubDate>Mon, 29 Aug 2011 14:21:44 -0000</pubDate><guid>https://sourceforge.net4acb144d1762678d1270feb4c25b4ff55b772228</guid></item><item><title>WikiPage HelloWorld modified by cohadar</title><link>https://sourceforge.net/p/parapascal/wiki/HelloWorld/</link><description>&lt;pre&gt;--- v2 
+++ v3 
@@ -10,7 +10,7 @@
 &lt;/pre&gt;
 &lt;/code&gt;
 
-Big deal, same as in standard pascal. ParaPascal is supposed to simulate parallel execution, let us try something more concurrent.
+It writes the message to the console, big deal, same as in standard pascal. ParaPascal is supposed to simulate parallel execution, let us try something more concurrent.
 
 &lt;code&gt;
 &lt;pre&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cohadar</dc:creator><pubDate>Mon, 29 Aug 2011 14:20:10 -0000</pubDate><guid>https://sourceforge.net2246fe9def6faeb0a39be6f8ec6119980f84e97a</guid></item><item><title>WikiPage HelloWorld modified by cohadar</title><link>https://sourceforge.net/p/parapascal/wiki/HelloWorld/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -30,9 +30,9 @@
 
 Run this program a couple of times to see if it really happens.
 It does not, it always print "Hello World" in normal order! 
-ParaPascal is not really parallel? What is going on?
+ParaPascal is not really parallel? You have been cheated!
 
-Not really you just did not set interpreter so you can see this effect properly.
+Not really, you just did not set interpreter so you can see this effect properly.
 Go to _Processors_ menu and set number of processors to 1, then go to _Scheduler_ menu and set it to RANDOM.
 
 These settings enable you to see the "race effect" much more quickly.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cohadar</dc:creator><pubDate>Mon, 29 Aug 2011 14:19:14 -0000</pubDate><guid>https://sourceforge.net25cb1b1abc29ea5abb4b06bf1efe9f0d2757b460</guid></item><item><title>WikiPage HelloWorld modified by cohadar</title><link>https://sourceforge.net/p/parapascal/wiki/HelloWorld/</link><description>#HelloWorld

Let us write a standard hello world program.
&lt;code&gt;
&lt;pre&gt;
&lt;font color='#6F0045'&gt;program&lt;/font&gt; HelloWorld;
&lt;font color='#6F0045'&gt;begin&lt;/font&gt;
    &lt;font color='#55007F'&gt;writeln&lt;/font&gt;(&lt;font color='#2A00FF'&gt;'hello world'&lt;/font&gt;);
&lt;font color='#6F0045'&gt;end&lt;/font&gt;.
&lt;/pre&gt;
&lt;/code&gt;

Big deal, same as in standard pascal. ParaPascal is supposed to simulate parallel execution, let us try something more concurrent.

&lt;code&gt;
&lt;pre&gt;
&lt;font color='#6F0045'&gt;program&lt;/font&gt; HelloWorld;
&lt;font color='#6F0045'&gt;begin&lt;/font&gt;
    &lt;font color='#6F0045'&gt;cobegin&lt;/font&gt;
        &lt;font color='#55007F'&gt;writeln&lt;/font&gt;(&lt;font color='#2A00FF'&gt;'hello'&lt;/font&gt;);
        &lt;font color='#55007F'&gt;writeln&lt;/font&gt;(&lt;font color='#2A00FF'&gt;'world'&lt;/font&gt;);
    &lt;font color='#6F0045'&gt;coend&lt;/font&gt;;
&lt;font color='#6F0045'&gt;end&lt;/font&gt;.
&lt;/pre&gt;
&lt;/code&gt;

COBEGIN/COEND commands represent the concurrent block.
Every statement inside concurrent block will run in a separate process.
Thus in theory the above program has equal chances of printing both "hello world" and "world hello".

Run this program a couple of times to see if it really happens.
It does not, it always print "Hello World" in normal order! 
ParaPascal is not really parallel? What is going on?

Not really you just did not set interpreter so you can see this effect properly.
Go to _Processors_ menu and set number of processors to 1, then go to _Scheduler_ menu and set it to RANDOM.

These settings enable you to see the "race effect" much more quickly.

ParaPascal's is by default set to simulate 4 processors and since you had only 2 processes (one for "hello" and one for "world") there was no race effect because 2 distinct processors simply executed tasks as they got them.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cohadar</dc:creator><pubDate>Mon, 29 Aug 2011 14:17:15 -0000</pubDate><guid>https://sourceforge.net7a89522c62dbb53ccecf9137fb85de8aaafeba0d</guid></item></channel></rss>