2011-05-02

2011-05-02 - Multitasking on the Revo

Gotten the new Aspire Revo 3700 wired up in place of the thin client, nice little piece of kit with an integral hard drive amongst other things.  I'm ignoring the Linpus Linux for now and have it set to network boot, and it fired up the TFTP branch first time.

Been looking at the multitasking code using the Revo (not that it's any better in this regard than the T61) and trying to track down the problem.  Having spent ages sticking in various bits of debugging code and trying to make sense of the results, the solution ends up being stupidly simple ... the stack I was assigning to each thread was too small.  One stack would overwrite part of another, then cause it's Interrupt frame to be corrupt, crashing when that thread was next invoked.

With that 'fixed', the threads are ticking over happily.  It's currently running maybe 30 character generator threads with a quanta of 10ms to test it.  So far no problems except the video routines aren't multi-thread safe.

No comments:

Post a Comment