LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2009, 02:47 PM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
distributed synchronization


Hi everybody,


we want to develop a distributed synchronization solution based on the principle of shared semaphores.

we want to distribute the functionality known for local semaphores.
My solution uses a client / server architecture, where clients make transactions on the server that hosts semaphores.

We have a server with multiple threads of services (thread for each client) and take advantage of the API available for synchronizing threads namely semaphores (such as sem_wait, sem_post ....).



in addition to the operating system, I want to schedule a sem-List command allows me to list the semaphores in a hosted server,

for this I want to know how to:

- See the code of the command ipcs, since it is equivalent to List-sem but local.

- Where to save the code of the command, ie the absolute path to the directory that will contain the source of List-sem.


any idea is welcome.

thanks in advance
best regards
bela
 
Old 04-25-2009, 03:45 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

One "develop a distributed synchronization solution" is something called a "database". Set a flag as a column in a table; read/manipulate the flag in the context of a transaction.

IMHO .. PSM
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Clock Synchronization in a Distributed System manolakis Programming 5 02-03-2009 09:33 AM
distributed systems gopal_patil06 Programming 1 07-23-2008 05:51 AM
email synchronization (not file synchronization) Moebius Linux - Software 6 10-05-2004 05:31 AM
Distributed computing redhatgeek General 2 08-10-2004 08:26 PM
Distributed computing JIV Linux - Networking 1 11-13-2003 08:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration