Linux执行进程调度或线程调度 [英] Linux perform process scheduling or thread scheduling

查看:81
本文介绍了Linux执行进程调度或线程调度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

linux如何执行调度?假设我有一个进程A,其中包含三个线程,进程B包含2个线程。所有这些线程都是实时线程。 Linux如何执行调度以及linux如何维护进程/线程数据结构(任务结构)? linux调度程序首先选择runnable进程,并在进程中调度一个线程,还是总是线程作为调度的基本单位?



什么我试过了:



How linux performs scheduling? Say i have a process A which inturn contain three threads and process B which contain 2 threads. All these threads are realTime threads. How Linux performs the scheduling and how linux maintains the process/thread datastructure(task struct)? Do linux scheduler select the runnable process first and with in the process will it schedule a thread or is it always thread as level basic unit of scheduling?

What I have tried:

Are any books or articles discusses the above topic in details? 





谢谢!



Thanks!

推荐答案

这里使用Google就是一个例子:< a href =http://www.makelinux.net/books/lkd2/> Linux内核开发,第2版 [ ^ ]
Use Google here is an example : Linux Kernel Development, 2nd Edition[^]


这篇关于Linux执行进程调度或线程调度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆