Messages in this thread | | | From | "D'Ath, Philip" <> | Subject | task already on run-queue | Date | Tue, 21 Jul 1998 12:37:22 +1200 |
| |
System: gcc v2.8.1 glibc-2.0.6, linux-threads release kernel V2.0.35 and V2.1.09
I've started using the linux threads package recently, and seem to be experiencing problems with the kernel's scheduler. The error message I am getting (in my syslog) is:
Jul 16 02:14:52 ns1 kernel: task already on run-queue
I've tried V2.0.35, and V2.1.109. Both kernels exhibit the same behaviour.
What I'm doing is starting 16 threads using pthread_create. These threads doing are continuous calls to gethostbyaddr_r to convert IP addresses to names. Two more threads are used in a classic reader/writer setup. I'm also making extensive use of semaphores.
To make the problem difficult, it is not easily reproducible (but what thread problem ever is ...). My program might run fine for a couple of hours, and then get the above error several times in a couple of minutes.
If you have an inkling to what the problem might be, I'd appreciate your comments. I haven't done any kernel work before, and aren't really looking forward to trying to figure out how the kernel scheduler works. If you could e-mail me directly at pid@acnielsen.co.nz I'd appreciate it.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |