??? 09/30/06 09:04 Read: times |
#125421 - Look at the code before changing cpu Responding to: ???'s previous message |
Sandeep - maybe your application does not need a RTOS. It may be time to re-evaluate how your existing system works and to do some research as to where the performance is required rather than choosing a new cpu. Maybe dividing the problem up into smaller cpus might pay dividends. Changing cpus and RTOS will have a large impact on to the code - you'll want to make sure you've identified where the problem lies - it could be that you're spending more time swapping tasks than actually doing the required processing - with 40 tasks this seems feasible. A similar issue has been observed with web servers - these used to spawn one thread for each connection. This seems a reasonable choice initially. The problem is when you get many connections - you have many threads and these require a fair amount of memory and overhead to support. The current solution is to have a thread support a small number of connections - this cuts down on the overhead of having many threads. So be a detective and search for some evidence - at a minimum you'll have some hard numbers to judge by and you'll understand your problem better. Think smarter, not harder! |