[so] Tema 2 - Shared Memory Windows

Iulian Moraru iulian at gmail.com
Fri Apr 18 10:52:28 EEST 2008


Din MSDN, documentatia pentru MapViewOfFile:

"Do not store pointers in the memory mapped file; store offsets from the
base of the file mapping so that the mapping can be used at any address."

Read the documentation and assume nothing.

Iulian

2008/4/18 Azure Dragon <the_first_azure_dragon at yahoo.com>:

> Am patit-o si eu...in toate rularile clientul si serverul aveau aceeasi
> adresa la mapare. Dar nu stiu daca e coincidenta sau nu. Ai putea sa lasi si
> offsetul daca tot e facut, just to be sure :D.
>
>
> ----- Original Message ----
> From: George Dita <george.dita at gmail.com>
> To: Sisteme de Operare <so at cursuri.cs.pub.ro>
> Sent: Friday, April 18, 2008 1:46:46 AM
> Subject: [so] Tema 2 - Shared Memory Windows
>
> La windows adresa intoarsa de comanda deschiderii unei memorii partajate
> este "absoluta" pentru toti cei care o apeleaza? In linux acest lucru nu era
> adevarat dar am observat ca acest lucru se intampla in windows. Ca urmare a
> acestei observatii mi-am aruncat variabila offset la gunoi. Am facut bine
> sau este doar o coincidenta?
>
> --
> George Dita
>
> ------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080418/73720372/attachment-0001.htm 


More information about the so mailing list