<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Antoine Chauvin on Medium]]></title>
        <description><![CDATA[Stories by Antoine Chauvin on Medium]]></description>
        <link>https://medium.com/@antoinechauvin_38576?source=rss-1867ec1dcc84------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*z_8u7WIVaRdNSoIQ.</url>
            <title>Stories by Antoine Chauvin on Medium</title>
            <link>https://medium.com/@antoinechauvin_38576?source=rss-1867ec1dcc84------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:38:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@antoinechauvin_38576/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[LemIPC]]></title>
            <link>https://medium.com/@antoinechauvin_38576/lemipc-560f808ee5cc?source=rss-1867ec1dcc84------2</link>
            <guid isPermaLink="false">https://medium.com/p/560f808ee5cc</guid>
            <category><![CDATA[semaphore]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Antoine Chauvin]]></dc:creator>
            <pubDate>Wed, 12 Apr 2017 19:21:27 GMT</pubDate>
            <atom:updated>2017-04-12T19:21:48.435Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Project :</h4><p>The aim of these project was to learned more about IPCs.</p><p>The goal is to create a simulation of AI fighting on a two dimensions game board. The last team remaining on the board is the winner.</p><p>To kill a player, a minimum of two players from the same team (and different from the first) need to be in contact with the player to kill. It means on a square next to the one where the player you want to kill stands on. (including diagonally)</p><p>When a player realizes he is surrounded by at least 2 players of the same opponent team, he must leave the board game.</p><p>A square cannot host more than one player simultaneously.</p><p>If we want that our players fight silmutaneous we need to use IPCs.</p><h4>Definition of IPCs (<strong><em>I</em></strong><em>nter </em><strong><em>P</em></strong><em>rocess </em><strong><em>C</em></strong><em>ommunication</em>) :</h4><p>An introduction to the IPCs we are using for the LemiPC :</p><blockquote>Shared Memory</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*NY_ghky-_ZKK2E0aU0oHCw.jpeg" /></figure><p><strong>Shared memory</strong> is memory that may be simultaneously accessed by multiple programs with an intent to provide communication among them or avoid useless copies.</p><blockquote>Message Queue</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*LEo23RPWE6bsLi8dnaD36w.jpeg" /></figure><p><strong>Message queues</strong> are used for IPC, or for inter-threads communication within the same process. They use a queue for messaging content.</p><blockquote>Semaphore</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*I3P8FJSErgnZ9OJxYixICg.png" /></figure><p>A s<strong>emaphore</strong> is a variable used to control access to a common resource by multiple processes in a concurrent system such as a multiprogramming operating system.</p><p>The semaphore concept was invented by Dutch computer scientist Edsger Dijkstra in 1962 and has found widespread use in a variety of oprating-systems.</p><p>In our project, we used shared memory to stoked the map and moved the players. Moreover, we used semaphores to synchonize process and avoided multiple uses of the shared memory by them. We could have implemented our message queues to warned the first process when a process died.</p><h4>AI :</h4><p>We made a basical AI. It chooses a random direction and goes.</p><h4>Feedback :</h4><p>Through this project we could demonstrated the advantage of the IPCs.</p><p>Now we can share ressources between process and limit access to them.</p><blockquote><em>Chennetier Arthur, Chauvin Antoine</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=560f808ee5cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>