其他分享
首页 > 其他分享> > 内核机制1—workqueue

内核机制1—workqueue

作者:互联网

1. 会创建线程的worqueue

wq = alloc_ordered_workqueue("%s", WQ_MEM_RECLAIM | WQ_HIGHPRI, "f_fstb"); //prio=100 cfs 0-7
# ps -AT | grep f_fstb
root           645   645     2       0      0 rescuer_thread      0 I f_fstb

wq = create_singlethread_workqueue("s_async"); //prio=100 cfs 0-7
# ps -AT | grep s_async
root           300   300     2       0      0 rescuer_thread      0 I s_async

 

标签:fstb,prio,内核,WQ,async,workqueue,机制,root
来源: https://www.cnblogs.com/hellokitty2/p/16185174.html