process management

Aaron J. Grier aaron at frye.com
Wed Nov 17 22:49:41 UTC 2004


On Wed, Nov 17, 2004 at 11:37:54PM +0100, sebastian ssmoller wrote:
> On Wed, 17 Nov 2004 14:28:35 -0800
> "Aaron J. Grier" <aaron at frye.com> wrote:
> 
> > On Wed, Nov 17, 2004 at 11:05:41PM +0100, sebastian ssmoller wrote:
> > > are rtems tasks similar to unix processes in the way that they
> > > have their own address space?
> > 
> > for code, no, but for local data, yes, since local data lives on the
> > stack, and each task has its own stack.
> 
> (...)
> 
> thx for ur fast reply - so global but static variables would be a prob
> here, right ?

depending on how they're coded, they might be.

any operations on such variables which need to be atomic will need to be
locked via some sort of mutual-exclusion (mutex) method.  (that's what
the various rtems_semaphore_* calls are for.)

have you ever done thread programming before?

-- 
  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  aaron at frye.com
  "Note that many bands' backline amps produce levels exceeding OSHA
   standards for industrial facilities.  Yet this is considered normal
   working conditions for musicians.  That's showbiz." -- Scott Dorsey



More information about the users mailing list