2008-11-06 07:47:12     Shell and user application

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-11-06 07:47:12     Shell and user application

Daniele Pagani (ITALY)

Message: 64769   




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.


Any suggestion?


Best regards,






2008-11-07 11:08:53     Re: Shell and user application


Message: 64845   


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.