|
|
|
Re: SIGKILL | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi Darshan,
Replying to all this time....
...snip...
> What if,
> spin_lock_irqsave(&lock, flags);
> for ( ; ; )
> {
> ;
> }
> spin_lock_irqrestore(&lock, flags);
Since you're using spinlocks and disabling interrupts, this would be
running in kernel space.
On a single core machine - you'll have locked up your entire computer.
On a multi-core machine you'll have locked up one core.
You don't need to use the spinlock, just disabling interrupts is
sufficient. Even on a multicore machine, the spinlocks would just
prevent a second core from executing the code if it tried to acquire
the same spinlock.
I don't think that there is any convenient way to kill such a thread.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
[Newbies FAQ] [Linux Kernel Development] [IETF Annouce] [Git] [Networking] [Security] [Bugtraq] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux Networking] [Linux RAID] [Linux SCSI] [Linux ACPI]
![]() |
![]() |