Synchronizing resource access across multiple platforms
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Synchronizing resource access across multiple platforms




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Synchronizing resource access across multiple platforms  
kenkahn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-15-06 06:21 PM

Is there some 'standard' way to implement a mutex-semaphore like access
to a hardware resource shared between applications running on different
workstations, perhaps running different platforms like AIX, Solaris or
Linux?

At any given time only one application can own/access the resource;
others must wait their turn.  When the 'owner' gives the resource up,
control is given to another application.

All the applications, as well as the hardware resource, are connected
via ethernet.  When the hardware is started it sends out a UDP
Broadcast message to all the applications.

I'm wondering if there's some 'standard' way of doing this; perhaps
using named pipes or something (are named pipes restricted to a single
workstation).

Any help or suggestions are appreciated.






[ Post a follow-up to this message ]



    Re: Synchronizing resource access across multiple platforms  
Maxim Yegorushkin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-17-06 12:30 PM

kenkahn wrote:

> Is there some 'standard' way to implement a mutex-semaphore like access
> to a hardware resource shared between applications running on different
> workstations, perhaps running different platforms like AIX, Solaris or
> Linux?
>
> At any given time only one application can own/access the resource;
> others must wait their turn.  When the 'owner' gives the resource up,
> control is given to another application.
>
> All the applications, as well as the hardware resource, are connected
> via ethernet.  When the hardware is started it sends out a UDP
> Broadcast message to all the applications.
>
> I'm wondering if there's some 'standard' way of doing this; perhaps
> using named pipes or something (are named pipes restricted to a single
> workstation).

There are many ways to do so.

One way is to have a proxy process somewhere, which will serialize all
access to the resource. You can design a protocol which suits best your
access patterns. If the proxy provides the same (network) protocol as
the resource being hidden behind the proxy, no code change may be
required for users of the device.

Another way is to have a nfs filesystem which is mounted by all the
users of the resource. You could then serialize access by using file
locks on that filesystem.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:38 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register