LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2013, 06:02 AM   #1
hello13
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Rep: Reputation: Disabled
linux doesn't call scheduler after interrupt and set task need resch flag


Hello,

In a linux task I am generating interrupts for each memory request it is doing. When the interrupt is called I am doing the following in the interrupt handler:

1 dequeue the task
2 Set the task state to TASK_UNINTERRUPTIBLE.
3 call set_tsk_need_resch for this task.

After the interrupt handler completes I expect that another task is going to run, but instead
this task still generates printk's that I print in the task itself because it is still running.
I think there are no semaphores holded by the task.
What can be the problem why it is still running?

---------- Post added 05-29-13 at 06:03 AM ----------

By the way, the values are set are set correct.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The DB2 SQL-based Admin Task Scheduler for Linux and UNIX LXer Syndicated Linux News 0 09-23-2008 04:10 PM
Event based task scheduler? beeblequix Linux - Software 1 01-30-2008 11:49 AM
Task Scheduler FC4, KDE lowebb Linux - Software 7 02-21-2006 05:19 PM
More accurate task scheduler lowspeed Linux - General 7 02-17-2005 08:21 PM
task scheduler? is there any? bruno buys Linux - General 1 11-17-2003 03:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration