IKIU-CE, The computer-engineering students web log - Qazvin, وب‌نوشت دانشجویان گروه مهندسی کامپیوتر - قزوین
یادداشت‌ها: فارسی ، Posts: English

۱۳۸۹ دی ۲, پنجشنبه

آزمایشگاه سیستم‌های عامل - جلسه اول حافظه مشترک

فایل ارایه و متن مثال‌ها را می‌توانید از اینجا دریافت کنید.

+++ پارامتر offset تابع mmap به صورت زیر تعریف می شود:
offset may be specified as a non-negative integer offset. mmap references will be relative to the offset from the beginning of the file. offset must be a multiple of the page size as returned by sysconf(_SC_PAGE_SIZE).

پارامتر addr آن نیز به صورت زیر تعریف می شود:
If addr is NULL, then the kernel chooses the address at which to create the mapping; this is the most portable method of creating a new mapping. If addr is not NULL, then the kernel takes it as a hint about where to place the mapping; on Linux, the mapping will be created at a nearby page boundary.