Thread count

Discussions and support about ChibiOS/RT, the free embedded RTOS.
Post Reply
JordiMerc
Posts: 2
Joined: Fri Nov 18, 2016 11:52 am

Thread count

Post by JordiMerc »

Hi all,

I've been searching around the board but I have been not able to find any method to get the number of threads during runtime

thanks

Jordi
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Thread count

Post by Giovanni »

Hi,

You can use the registry functions in order to count them.

Giovanni
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Thread count

Post by RoccoMarco »

Considering the answer of Giovanni,
take a look to THREADS command of the shell demo (USB-CDC)

This command print a list of all threads.
Ciao.
JordiMerc
Posts: 2
Joined: Fri Nov 18, 2016 11:52 am

Re: Thread count

Post by JordiMerc »

Got it!!

Many thanks to both
Br's


Jordi
Post Reply