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 / *1558 (-10)
  Re: getpid?
 
Eddie, Would there be any problem making these inline, seeing how they're one-liners? (I'm assuming here that the H8 target implements inline) Regards, ROSCO (...) (24 years ago, 15-Dec-00, to lugnet.robotics.rcx.legos)
 
  Re: getpid?
 
(...) The following patch will add both getpid() and getppid() to legOS: diff -u -r1.2 unistd.h --- include/unistd.h 2000/08/01 01:12:40 1.2 +++ include/unistd.h 2000/12/14 21:49:56 @@ -94,4 +94,7 @@ //! kill all processes with priority lower or (...) (24 years ago, 14-Dec-00, to lugnet.robotics.rcx.legos)
 
  Re: Any difference btw RCX1.0 and RCX1.5?
 
(...) Seems there are some nice additions (differential, optic fiber), but not many. See (URL) However, one big difference is that if the RIS 1.5 is operated with (...) Correct me if I'm wrong, but my impression is that the plug of the 1.0/2.0 is (...) (24 years ago, 14-Dec-00, to lugnet.robotics.rcx.legos)
 
  Re: getpid?
 
(...) [code snipped] Ah, I understand. You could still use my method, but you'd have to pass the pid in as a parameter to the functions that need to know it, which would be ugly. (...) Well, get hacking! ;) (24 years ago, 14-Dec-00, to lugnet.robotics.rcx.legos)
 
  Re: Any difference btw RCX1.0 and RCX1.5?
 
(...) I don't know if there are differences in the sets (pieces). However, one big difference is that if the RIS 1.5 is operated with re-chargeable batteries, the batteries cannot be charged in the RCX since there is no plug anymore. Best regards (...) (24 years ago, 14-Dec-00, to lugnet.robotics.rcx.legos)
 
  Re: getpid?
 
(...) this is not exactly what I meant. What I am looking for is how can a piece of code determine which process is currently executing it. something like: main(...) ... create 2 processes with pid1, pid2 ... these processes occasionally call (...) (24 years ago, 14-Dec-00, to lugnet.robotics.rcx.legos)
 
  Re: getpid?
 
(...) AFAIK there aren't any built-in mechanisms. However, when a thread is launched, the launching process does get its PID as a return value from execi(). I'm thinking you could pass in a pointer to some storage in the argv, and then update that (...) (24 years ago, 14-Dec-00, to lugnet.robotics.rcx.legos)
 
  looking for programmers
 
Dear Sir- P.S.1 Contemporary Art Center, NY (www.ps1.org), a major contemporary art museum affiliated with the Museum of Modern Art in New York is opening a new exhibition in a few days, this Sunday, the 17th, called Some New Minds. As part of the (...) (24 years ago, 14-Dec-00, to lugnet.robotics.rcx.legos)
 
  Any difference btw RCX1.0 and RCX1.5?
 
Is there any difference between RCX1.0 and RCX1.5? I have seen them on sale at two different prices. (24 years ago, 13-Dec-00, to lugnet.robotics.rcx.legos)
 
  V2.0 will be out in Nov. 2001
 
1. First of all, thanks for the replies guys. 2. To Peter; I was told that version 2.0 will come available in November of 2001. But get this, in the mean time, there will be absolutely no Robotics Invention Systems of any number available at all; (...) (24 years ago, 13-Dec-00, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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