hi, i found out that if a load only one thread & try to stop it it works fine. but the moment i try to load more than one application (or having one tosthread_main & create another thread inside that) & try to stop them individually it fails to stop either of them. i tried checking the no of elements in the ready queue. when i load one thread using DynamicLoader.loadFromMemory the count is 1. when i load more than one(tinyLD example app LoadFromRAM) then still the no of elements in the ready queue is 1. is this possible? one more thing. DynamicThread.destroy works provided i wakeup the thread before destroying. (else it does not work) (in the case of a single thread) any suggestions would be greatly appreciated! Thank you ranal > Subject: Re: [Tinyos-help] TinyLD > From: [email protected] > Date: Fri, 4 Feb 2011 01:56:26 +0800 > CC: [email protected] > To: [email protected] > > Hi Ranal, > > Interesting, I didn't test this case. I don't have a mote with me now, but > can you try DynamicThread interface to pause the thread? > > Thanks > > Mike > > On Feb 3, 2011, at 7:59 AM, ranal fernando wrote: > > > > > just wondering whether anyone has any suggestions ? > > From: [email protected] > > To: [email protected] > > Date: Tue, 1 Feb 2011 15:22:08 -0500 > > Subject: [Tinyos-help] TinyLD > > > > Dear all, > > > > > > is there a way to stop or pause a thread that is created by TinyLD > > (DynamicLoader.loadFromMemory)? > > > > I tried to get the thread id from the loaddone event & stop by using > > ThreadScheduler.stopThread but it fails. > > > > > > Any idea about this? > > > > Thanks > > > > > > ranal fernando > > > > _______________________________________________ Tinyos-help mailing list > > [email protected]https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > _______________________________________________ > > Tinyos-help mailing list > > [email protected] > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
