2008-11-06 07:47:12 Shell and user application
Daniele Pagani (ITALY)
I've a problem and I need some idea to understand it.
I use the sport driver (according to new sport driver http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3928) and it works fine.
Then, I develop a user application, that read and write with this char device driver.
Then, I run it background, so I can run other command from the console.
However, when I press Enter after a commad (such as ls or top or similar) I have a break in the throughput of my application.
It seems like that shell has priority on my application.
Then, I check this situation also with dropbear (that is using ethernet instead uart communication) but the result is the same.
I test also with renice and so on, but I have always the same problem.
Somebody tells me that with old release version this problem there isn't.
2008-11-07 11:08:53 Re: Shell and user application
Yi Li (CHINA)
Looks you are trying to make you application running in higher priority? I don't think "shell has priority on your application". There may be some other reason. By the way, if you really want to make your application run in higher priority, you may try functions like "sched_setscheduler()" to make your application a realtime thread.