We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,680 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Of CPUs and instructions

Hi Daniweb,
Sorry if this sounds incredibly noobish, but i was just pondering seriously upon it. If the processer can handle only one instruction at a time, how does the computer seem to be doing like a hundred things at a time? It is performing the OS functions, it is running the application, it is displaying the GUI, and all the stuff between these. I suppose the obvious answer will be that it juggles between these processes extremely fast, but then, how fast can you go?

3
Contributors
3
Replies
1 Day
Discussion Span
5 Months Ago
Last Updated
5
Views
pspwxp fan
Junior Poster
102 posts since Feb 2009
Reputation Points: 43
Solved Threads: 7
Skill Endorsements: 0

It's all handled by the operating system. The os contains a task scheduler whose job is to give cpu time to the various processes that are running. Here is an article that will interest you.

Ancient Dragon
Achieved Level 70
Team Colleague
32,275 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,591
Skill Endorsements: 70

Thank You :)
Wowww you're still around haha. I remember being really fascinated by you and your stats in the C++ board ages ago :P
Edit: Hey btw im reading your link, it has a lot of stuff coming in my exam tomorrow. Thanks a lot :)

pspwxp fan
Junior Poster
102 posts since Feb 2009
Reputation Points: 43
Solved Threads: 7
Skill Endorsements: 0

Ancient Dragon is totally true, and parallel processing makes the throughput even faster (Computers with multiple processors). But everything depends on the OS and the program running (Programmers can distribut tasks of there programs on different processors to make execution faster). A single processor cannot execute multiple instructions in exactly the same time, but if you want to know more about how to benefit the maximum of a single processor check the Pipelining
Good Luck in your exam :)

cmps
Junior Poster
117 posts since Nov 2011
Reputation Points: 28
Solved Threads: 18
Skill Endorsements: 2

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0593 seconds using 2.68MB