Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-2008, 05:19 AM
kumars kumars is offline
Newbie
 
Join Date: Jun 2008
Posts: 1
Rep Power: 0
kumars is on a distinguished road
Default Shared Memory implementation using thread ( C on AIX)

I am looking for C program source code. Could you please help me in finding the source code of the required mentioned below.



Task that I need to complete:

Write a program to create multiple threads (one master thread and rest worker threads) and using the threads write into and read from shared memory


Restrictions:

Only one thread should be able to read at any instant of time into shared memory region.

Only one thread should be able to write at any instant of time into shared memory region.

Worker threads should inform the master thread after every read and write operation.

Master thread inform the worker thread (which is waiting to acquire shared memory region) that read or write operation is successful and it can acquire the memory for either reading and writing operations.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacking Applications With Memory Editors TcM Security Tutorials 8 06-07-2008 12:52 PM
Tutorial: Java Threads Jordan Java Tutorials 1 05-17-2008 10:37 AM
Virtual Memory ... Windows XP mindsurfer Computer Hardware 1 11-01-2007 06:38 PM
Need help with "a multi-threaded program using POSIX thread library" Gordack C and C++ 0 10-28-2007 12:08 AM


All times are GMT -5. The time now is 11:44 PM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 66%

Ads