Re: Synchronization question

Shawn Silverman <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
 From my understanding of TINI processes, each process is like a 
separate JVM.  All static resources are not shared.  You could use a 
lock file, a lock "server" that listens on a socket, or use separate 
threads inside the same process.

Hope this helps,

	-Shawn

On 12-Feb-04, at 9:07 AM, Massimo Piovera wrote:

> Hi,
>
> I'm using tini1.02f.
> I have a question about synchronization (probably pure java problem).
> I have made a class with some static methods and inside of it I use 
> I2CPort
> to access to our hardware resource. Inside every methods, I use
> the I2Cport object to synchronize the use of the I2c bus. This allows
> to avoid that 2 simultaneous access to some of the methods of the class
> can create a conflict on the I2c bus.
> If I run my application 2 time simultaneously (from 2 telnet session),
> I see that synchronization not happens and there is a simultaneous
> access to the I2c bus.
> Is there a mode to avoid this situation between 2 different processes 
> or
> the synchronization is allowed only inside a single process (multi 
> threads)?
>
> Thanks
> Massimo Piovera
> ELSIST Srl

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.