To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2172
2171  |  2173
Subject: 
Re: Storing Data
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 21 Dec 2001 15:29:02 GMT
Viewed: 
1618 times
  
On Fri, 21 Dec 2001, Michael Obenland wrote:

When using LegOS (a most excellent creation, btw) is it possible to store a
value and use it in different programs?

What you request is shared memory and shared memory is not a part of legOS. My
way to simulate shared mem is to put the two (or more) tasks into one legOS
program. Each task is started as a thread by an execi() call, triggered by the
user via the remote control.

Is someone out there working on a legOS memory pool implementation??

As there is no memory management, any memory not on the stack is by
definition shared between any threads.  Concurrency control is up to you
however.

John A. Tamplin jat@jaet.org
770/436-5387 HOME 4116 Manson Ave
770/431-9459 FAX Smyrna, GA  30082-3723



Message has 1 Reply:
  Re: Storing Data
 
(...) It was suggested by some of my 'c++' co-workers that this was the case (shared memory was available). However, I don't deal with that in my Visual Basic world. They also suggested there were 'unused' memory blocks in LegOS where data could be (...) (23 years ago, 21-Dec-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Storing Data
 
(...) What you request is shared memory and shared memory is not a part of legOS. My way to simulate shared mem is to put the two (or more) tasks into one legOS program. Each task is started as a thread by an execi() call, triggered by the user via (...) (23 years ago, 21-Dec-01, to lugnet.robotics.rcx.legos)

11 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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