Subject:
|
Re: Very strange problems
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 21 May 2000 19:25:42 GMT
|
Viewed:
|
1383 times
|
| |
| |
On Sun, 21 May 2000, Michael J Ash wrote:
> On Sun, 21 May 2000, Luis Villa wrote:
>
> > > Nope, no multi-threading.
> >
> > Good. It's generally solid, but can cause some issues from time to time.
>
> What sort of "issues" are these? Are you referring to the normal issues of
> multithreading (synchronization, deadlock, etc.), or specific
> legOS-related problems with it? I have a program that uses a decent amount
> of multithreading, and I'd hate to have to fight the OS from yet another
> angle. :)
Just that it is not pre-emptive. If you don't msleep() at the appropriate
places in your code, you'll never go back to the scheduler or the other
threads. This can come as a surprise, since you'll only notice it when
one thread never executes.
Luis
-----------------------------------------------------------------------
"Going to California with an aching in my heart.
Someone told me there's a girl out there
with love in her eyes and flowers in her hair."
-Led Zeppelin, "Going to California"
-----------------------------------------------------------------------
|
|
Message has 1 Reply: | | Re: Very strange problems
|
| (...) Ack! I knew that it was cooperative in the 0.1.x series, but I had thought it was preemptive in 0.2.x. Drat. Well, I don't think it's a major problem for me, since I call msleep() religiously, but it's something to look into. Thanks. -- "Our (...) (25 years ago, 21-May-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: Very strange problems
|
| (...) What sort of "issues" are these? Are you referring to the normal issues of multithreading (synchronization, deadlock, etc.), or specific legOS-related problems with it? I have a program that uses a decent amount of multithreading, and I'd hate (...) (25 years ago, 21-May-00, to lugnet.robotics.rcx.legos)
|
20 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
|
|
|
|