<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://so.v2.cs.unibo.it/wiki/index.php?action=history&amp;feed=atom&amp;title=Prove_scritte_2011</id>
	<title>Prove scritte 2011 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://so.v2.cs.unibo.it/wiki/index.php?action=history&amp;feed=atom&amp;title=Prove_scritte_2011"/>
	<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Prove_scritte_2011&amp;action=history"/>
	<updated>2026-05-01T04:43:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://so.v2.cs.unibo.it/wiki/index.php?title=Prove_scritte_2011&amp;diff=2579&amp;oldid=prev</id>
		<title>Acsor: Created page with &quot;== Esame 11/05/2011 == [http://www.cs.unibo.it/~renzo/so/compiti/2011-05-11.con.pdf 2011-05-11.con.pdf] === Esercizio 2 (da controllare) === &lt;source lang=&quot;c&quot;&gt; stack s; semapho...&quot;</title>
		<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Prove_scritte_2011&amp;diff=2579&amp;oldid=prev"/>
		<updated>2020-08-30T08:08:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Esame 11/05/2011 == [http://www.cs.unibo.it/~renzo/so/compiti/2011-05-11.con.pdf 2011-05-11.con.pdf] === Esercizio 2 (da controllare) === &amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt; stack s; semapho...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Esame 11/05/2011 ==&lt;br /&gt;
[http://www.cs.unibo.it/~renzo/so/compiti/2011-05-11.con.pdf 2011-05-11.con.pdf]&lt;br /&gt;
=== Esercizio 2 (da controllare) ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
stack s;&lt;br /&gt;
semaphore mutex(1);&lt;br /&gt;
&lt;br /&gt;
lifocs_enter()&lt;br /&gt;
{&lt;br /&gt;
    s.push(getpid());&lt;br /&gt;
    mutex.p();&lt;br /&gt;
    while(s.lastElement() != getpid())&lt;br /&gt;
    {&lt;br /&gt;
        mutex.v();&lt;br /&gt;
        mutex.p();&lt;br /&gt;
    }&lt;br /&gt;
    s.pop();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
lifocs_exit()&lt;br /&gt;
{&lt;br /&gt;
    mutex.v();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Acsor</name></author>
	</entry>
</feed>