How do I lock in a safe manner?

Marc Bechler (mbechler@telematik.informatik.uni-karlsruhe.de)
Thu, 27 Aug 1998 21:56:54 +0200


Hi all!

Perhaps my question is simple for somebody out in the world. If so, please
contact me :-)

Looking at the syscall sched_setscheduler() there are three spin locks: irq
for the scheduler, one for the runqueue and read for the taskqueue. I would
like to know, if this overhead is needed, too, if only the priority will
be changed (not the rt-priority!).

Any ideas? (If all is necessary, can you give me an example that causes a
deadlock, if only the priority will be changed?) Thanx for helping me!

marc

-
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