Both are diferrable functions and they also called software interrupt. softirqs and tasklets are strictly correlated. tasklets are implemented on top of softirqs.
Softirqs are defined at compile time whereas tasklets are initialized and allocated at run time while loading the kernel module.
Softirqs are reentrant functions so it can run concurrently on the several CPUs. Spin loack techniques generally used to protect softirqs data structures. whereas tasklets run under restriction of kernel.
Tasklets schedule task for future purpose
Work Queue is similar to Tasklets, It also schedule task for future purpose. Both are use for the similar purposes, but tasklets are excute in interrupt context whereas work queue executes in process context.
Work queue allow kernel function to be activated and later executed by the kernel thread(worker thread).
Softirqs are defined at compile time whereas tasklets are initialized and allocated at run time while loading the kernel module.
Softirqs are reentrant functions so it can run concurrently on the several CPUs. Spin loack techniques generally used to protect softirqs data structures. whereas tasklets run under restriction of kernel.
Tasklets schedule task for future purpose
Work Queue is similar to Tasklets, It also schedule task for future purpose. Both are use for the similar purposes, but tasklets are excute in interrupt context whereas work queue executes in process context.
Work queue allow kernel function to be activated and later executed by the kernel thread(worker thread).
No comments:
Post a Comment