To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 10520
10519  |  10521
Subject: 
Re: HandyBoard multi-process syncs..
Newsgroups: 
lugnet.robotics
Date: 
Sun, 6 Feb 2000 09:02:37 GMT
Viewed: 
1383 times
  
          If these mechanisme is not available, should I use a
          variable to build such a mechanism. Mainly I worry about
          the consistentcy of a variable when switching from one
          process thread to another.

In REAL C the right way to handle that would be to declare the variable
volatile, eg:

volatile int mutex;

and that forces the compiler to always use the in-memory copy.  I don't know if
that exists in IC, but if not I bet all variables are implicitly volatile
(otherwise memory writes to chip registers wouldn't work right).

--Ben



Message is in Reply To:
  HandyBoard multi-process syncs..
 
Hardware : HandyBoard Language : IC 3.2 Question : Is there a mechanisme available to synchronize the process threads within a multi-process application ? If these mechanisme is not available, should I use a variable to build such a mechanism. (...) (25 years ago, 6-Feb-00, to lugnet.robotics)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR