The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mmap & msync marquis High Level Programming 3 12-09-2007 04:50 PM
mmap failed scotbuff HP-UX 2 09-11-2007 05:28 AM
kernel values related to mmap tobsinte High Level Programming 4 07-20-2007 03:15 AM
mmap error - only when from cron?!?!? Bicks Filesystems, Disks and Memory 1 08-01-2006 10:12 AM
mmap gusm Filesystems, Disks and Memory 0 07-30-2002 02:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-01-2008
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 360
mmap and select

I'm using select() to monitor multiple file descriptors (inet sockets) in application. But this application must also collaborate with other applications on the same host via shared memory (mmap'ed file) due to performance reasons. How can I become notification that mmaped memory is changed or semaphore state changed when the application is blocked in select()? For instance, can I perform select() (or epoll()) on the file descriptor that is mapp'ed to memory or should I use signals or something else?
Reply With Quote
Forum Sponsor
  #2  
Old 09-03-2008
Registered User
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 250
Interesting issue but not enough details . Signals for process based and pthread_cond_wait for threaded apps I'd think. The blocking you mentioned in select() makes the use of epoll or more sophisticated event mechanisms a little problematic. You may run into performance problems based on this alone.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0