Quote:
Originally Posted by imrantechii have gone through the link and found that the program is your 's
i regret for the issue
|
Go4Expert Founder
|
![]() |
| 13Feb2008,17:14 | #21 |
|
Quote:
Originally Posted by imrantechi |
|
Go4Expert Member
|
![]() |
| 13Feb2008,19:26 | #22 |
|
Quote:
Originally Posted by imrantechi Shared memory comes under Inter-Process Communication. Shared memory is the fastest of all IPC. Shared memory comes under System V IPC. SHARED MEMORY: Shared memory is one of the three System V IPC. It allows two unrelated processes to access the same logical memory. Shared memory is a very efficient way of transferring data between two running processes. In the program i have used these functions. shmget and shmat for shared memory. shmget is used to create shared memory. shmat is used to attach the shared memory to the address space of the process. When we come to the program,i have created two process i.e process-1 and process-2. process-1 and process-2 uses same memory i.e shared memory. I have created a single bit shared memory to control the two process not to access the shared memory at a time. When process-1 uses the shared memory then process-2 waits until process-1 completes its work and wise versa . Run the two process at a time (i.e in two terminals ) and u will observe that When process-1 uses the shared memory then process-2 waits until process-1 completes its work and wise versa . Last edited by bashamsc; 26Feb2008 at 08:34.. |
|
Ambitious contributor
|
|
| 13Feb2008,19:31 | #23 |
|
Okay!!! Thanks man...
|
|
Ambitious contributor
|
|
| 13Feb2008,19:40 | #24 |
|
Leave it bashamsc !!! your effort is really apprecited. Now please dont make issue more. That article should be nominated!!! Finallllll
|
|
Go4Expert Founder
|
![]() |
| 19Feb2008,12:45 | #25 |
|
Contributor
|
|
| 26Feb2008,18:21 | #26 |
|
its complex
|
|
Go4Expert Member
|
|
| 26Feb2008,18:36 | #27 |
|
what is this problem of copy
|
|
Go4Expert Member
|
|
| 27Feb2008,09:26 | #28 |
|
good one
|
|
Go4Expert Member
|
![]() |
| 27Feb2008,16:30 | #29 |
|
see this blog www.sharedmemoryprogram.blogspot.com
|
|
Go4Expert Founder
|
![]() |
| 28Feb2008,17:32 | #30 |