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 / 2173
2172  |  2174
Subject: 
Re: Storing Data
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 21 Dec 2001 16:08:49 GMT
Viewed: 
1646 times
  
In lugnet.robotics.rcx.legos, John A. Tamplin writes:
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.

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 stored.  I just need to store a couple light values.

SO...  how do I do that?  (I need commands here!)

Thanks for the help

Steve



Message has 1 Reply:
  How to make shared memory....not
 
(...) You ask for it, you get it. BUT: It works, sort of. It will not survive any multitasking problems. Shared memory has to be handled by the OS, not by a user program. I split your problem to 3 programs. Program 1 allocates the memory and prints (...) (23 years ago, 22-Dec-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Storing Data
 
(...) 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 (...) (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