Home > other >  Obstruction of the epidural vxworks task
Obstruction of the epidural vxworks task

Time:09-30

I have seven tasks, 5 ms, 10 ms, ms, 20 to 40 ms and 80 ms and 100 ms and 1000 ms, priority in order to reduce, to give each task to create a binary semaphore, and in a 5 ms timer interrupt function regularly release semaphore

Program to run the test under vxworks accidental 40 ms tasks blocking problems, and the problems are difficult to repetition, sometimes programs run dozens of hours not to come out, sometimes 80 ms tasks and 40 ms tasks are blocked, sometimes 10 ms, ms, 20 to 40 ms, 80 ms are abnormal, but each time the 40 ms will be abnormal,
Consult everybody a great god, and what may cause the task block?

CodePudding user response:

Problem seems to be found, because with the printf in 40 ms, sleep problems will reappear computer screen!

CodePudding user response:

The problem you describe is drunk, lead to task obstruction was caused by abnormal single task, such as a stack of crossing the line and so on, have to do is to check your task processing, 40 ms task if you not interrupt trigger, and print the printf should not appear problem, feeling you know problem without screening, dormancy and screen is what mean? Your failure is run x86?

CodePudding user response:

High-priority task will some cases running time is too long that don't have time to perform low priority task?
  • Related