单处理器与双核系统上的处理状态 [英] Process states on a single processor vs Dual-core system

查看:70
本文介绍了单处理器与双核系统上的处理状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为考试做准备,并且遇到了一个我不确定的问题.

I am currently revising for an exam and have come across a question that I am really not sure of.

1)产生清晰标记的图表,指示进程在单处理器多任务操作系统中可以采取的三种状态.

1) Produce a clearly labeled diagram indicating the THREE states a process can take in a single-processor multitasking operating system.

我的理解是(我认为)这个问题是可以理解的,流程状态可以是以下任何状态.并且,当一个进程在其生命周期内传递到不同的队列中时,它的状态将发生变化.

This question im okay on (i think) my understanding is that a process state can be any of the states bellow. And a process will change its state as it gets passed around into different queues during its life cycle.

我最想解决的问题是

2)对于在双核系统上运行的OS,需要对上述三个状态图进行哪些更改?

2) What changes would need to be incorporated to the three state diagram above for an OS running on a dual-core system?

在我使用Silberschatz撰写的《 OS Concepts》一书中的注释中,我似乎无法在线找到任何信息.

I cant seem to find any information online, in my notes of in the book im using, OS Concepts by Silberschatz.

我发现的是一个中期调度程序,它引入了两个新状态,就绪等待"和就绪阻止".

What i have found is a medium term scheduler which introduces two new states, Ready waiting and Ready blocked.

如果有人可以为我阐明这一点,或者向我指出正确的方向,那将是一个很大的帮助.

If someone could shed some light on this for me, or point me in the right direction on where to look it would be a big help.

谢谢.

推荐答案

我认为有两种不同的可能性

In my opinion there are two different possibility

第一

进程状态图与多核系统相同,可能会有两种运行状态,调度程序调度选择哪个进程去哪个内核(运行状态)开始运行

Process states diagrams same as multiple core system,maybe there will be two running state,scheduler dispatch choose which process goes which core(running states) to start running

第二

进程状态图折叠到2,每个核心都有自己的就绪,运行和等待队列,进程共享是在核心上进行的昂贵事务,因此,如果一个进程进入一个核心,则每个核心都应具有自己的就绪,运行和等待队列,必须完成此核心操作

process states diagrams folds to 2,every core have their ready ,running,and waiting queue,process sharing is costly transaction on cores,therefore every core should have own ready and running and waiting queue,if a process enter a one core,it must be finished this core,

这篇关于单处理器与双核系统上的处理状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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