Salut, am rezolvat, faceam o prostie, nu vrerificam ca nu imi deschide semaforul in partea cealalta si ramanea agatat. Acum intampin o noua problema. Folosind testerul in cygwin imi pica testele 4,5,6, dar ruland exact comenziile in commandul de visual studio imi da outputul corespunzator. In cygwin mai exact imi da o eroare gen fatal error la server. Vreo idee cu privire la ce o poate cauza?<br>
<br>George<br><br><div class="gmail_quote">2008/4/17 Daniel Baluta <<a href="mailto:daniel.baluta@gmail.com">daniel.baluta@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote">2008/4/17 George Dita <<a href="mailto:george.dita@gmail.com" target="_blank">george.dita@gmail.com</a>>:<div><div></div><div class="Wj3C7c"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am intampinat o problema la folosirea functiei pentru decrementarea semaforului. Am inteles din laborator ca trebuie folosit: <br clear="all"><pre>WaitForSingleObject<span>(</span><br>                 hSemaphore, <span>//HANDLE-ul asociat semaforului</span><br>
                0L<span>)</span>; <span>//nu astept deloc (time-out de 0)<br><br><br></span></pre>Daca doresc sa astepte pana poate face o decrementare pun la asteptare INFINITE? Mi se comporta ciudat si nu stiu de ce. Ma intrebam daca asta ar putea fi problema.<br>
</blockquote></div></div><div>da. <br>
cu INFINITE nu iti merge? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>-- <br><font color="#888888">George Dita
</font><br>_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>George Dita