[so] [tema5lin]detalii

Cosmin Ratiu cosminratiu at gmail.com
Tue Aug 19 21:33:48 EEST 2008


2008/8/19 Diana-Elena Gratie <diana_gratie at yahoo.com>

> 3. Nu reusesc sa folosesc aio_suspend. Primesc worning cum ca nu am dat
> bine primul parametru, desi m-am uitat in laborator.
> struct aiocb myaiocb[1];
> ...
> aio_suspend(myaiocb, 1, NULL);
>

Nu folosi aio_suspend, pt ca suspenda tot procesul in asteptarea terminarii
operatiilor din vectorul ala. Scopul e sa nu blochezi decat in epoll_wait.
Gandeste-te cum structurezi programul a.i. sa fie un singur punct de
blocare.

Cosmin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080819/dd171ab9/attachment.htm 


More information about the so mailing list