I'm working on Set Top Boxes with VxWorks as the Rtos. I work mostly on a middleware platform which calls down into a porting layer that sits above the STB manufacturers code which I guess includes device drivers for everything on a STB. The middleware is multithreaded.
Hi,
I am trying to understand the pros and cons of threads of execution providing services for one another via intertask messaging, against simply making specific functions rentrant safe and allowing them to be called from any where in a multi-threaded environment.
I am really interested to...
Hi Lionel,
Thanks for your interesting post. The bitmask I'm using is actually a 32 bit mask for a debug manager. The top 8 bits identify a debug group (1 of a possible 8), while the remaining 24 bits are used to identify debug channels. That gives me 8 * 24 channels of debug which is about...
Thanks Salem. I should have spent more time understanding your first response. I've tried it out and my code runs quicker than before. Your help is greatly appreciated.
Hi Salem,
Thanks for the reply. OK so logs are not going to give good performance and unfortunately the lookup table would need to be so large that it would not be practical. I like the idea of the inline assembler but this code has to be platform and processor independant. I will think on...
Hi,
I'm after a really efficient way of calculating n, given that the nth bit only is set in a bitmask. I have a 24bit mask with 1 bit set in it (it could be any bit). I can think of long winded ways to do it like bitshifting 1 to the left until a bitwise And returns true, but that is not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.