LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2015, 07:52 AM   #1
shone411
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Rep: Reputation: Disabled
What is a CPU?


What is a cpu do?
 
Old 02-14-2015, 08:12 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
http://www.webopedia.com/TERM/C/CPU.html
 
Old 02-14-2015, 08:19 AM   #3
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,653

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
CPU

CPU = Central Processing Unit. This is the chip, module, or array of logic gates that implements the machine-language code execution engine at the core of any computer or calculating machine. (including but not limited to PCs, cell phones, automotive monitoring and control modules, smart watches, digital cameras, control modules on TVs (Smart TVs may have two, three, or four), DVRs, most recent VCRs, washing machines, dryers, stoves, smart refigerators, microwave ovens, and much more.)

For such a basic question, you could have discovered a lot using google or wikipedia.
 
Old 02-15-2015, 03:13 AM   #4
DJ Shaji
Member
 
Registered: Dec 2004
Distribution: Fedora 22 (Twenty Two!), ArchLinux
Posts: 506
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
I am think answer should suited the questioner. A CPU execute instruction given by user. CPU execute thousand of instruction in seconds. Different different type of CPU there are. Computer have the CPU Intel. Phone has CPU called the ARM. Modern CPU has the very power.

This page is having more information. Click here.
 
Old 02-15-2015, 04:09 AM   #5
tlan
LQ Newbie
 
Registered: Aug 2003
Location: Chicago, IL USA
Distribution: Debian 8 Jessie *gnome /kde. Ubuntu mate
Posts: 18

Rep: Reputation: 2
the Brains of the computer. All instructions pass thru the CPU for processing. Each process takes ~ one clock cycle. the CPU is rated in Gigahertz, a single hertz is one clock cycle. so a CPU can process billions of cycles per second.

as in the Intel I5 3.4 Ghz thats 3.5 billion cycles per second. or 3.5 billion intructions per second. note: some instructions take more that once cyle to complete. like a simple click of the mouse.
 
1 members found this post helpful.
Old 02-15-2015, 09:55 AM   #6
genss
Member
 
Registered: Nov 2013
Posts: 739

Rep: Reputation: Disabled
Quote:
Originally Posted by tlan View Post
the Brains of the computer. All instructions pass thru the CPU for processing. Each process takes ~ one clock cycle. the CPU is rated in Gigahertz, a single hertz is one clock cycle. so a CPU can process billions of cycles per second.

as in the Intel I5 3.4 Ghz thats 3.5 billion cycles per second. or 3.5 billion intructions per second. note: some instructions take more that once cyle to complete. like a simple click of the mouse.
some instructions take more cycles then others
some, like bitwise instructions, can take less (1/3 of a cycle on modern cpus)
then there is the cpus instruction decoder that rearranges them and can send out multiple instructions for processing simultaneously

with that in mind, GHz is not to be taken as a precise speed measurement

clicking a mouse or a keyboard button is kind of a different thing
when you click, things on the motherboard send an interrupt to the cpu saying something like "data on this port, deal with it"
that's where it gets a bit more complicated, especially when usb is involved

check the instruction tables here for latency and throughput
and the microarchitecture pdf for... more info
http://www.agner.org/optimize/


as for the original question
the cpu is what is called an automaton
more precisely it aims to be a "Turing machine"
(wiki has pages on bout)
in short:
a cpu processes data in accordance with its(cpus) state and the data itself
C is fairly close to the instructions a cpu executes, so if you know C you know about half of how a cpu works
 
Old 02-15-2015, 09:56 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Ouch.
CPU is short for "Central Processing Unit". In computers it is usually a single complex chip that implements the instruction cycle (http://en.wikipedia.org/wiki/Instruction_cycle), which is the algorithm that explains how to interpret instructions.

Historically, it was a central control point for a computer (hence the "Central" part) and the most expensive single piece of equipment in a computer. There was only one such unit per computer.

Current computers are more like a network of many processors - The CPU is generally considered the one that guides all the others... but now there are usually more than one (anywhere from 1 to 32, though there are plans for many more, depending on the manufacturer and the design). There are processors for each disk (programmed to translate data to/from the disk, and interpret commands on how the data is to be passed to main memory) processors for video, processors for bus controllers... Here, the CPU is one or more processors that are used for generic processing, rather than programmed for specific parts of the system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get physical CPU count, cores per CPU, and CPU type on RHEL and CentOS rjo98 Linux - Server 7 01-08-2015 11:57 AM
Process bound to specific CPU. Are the related TCP syscalls executed on same CPU? perec-jar Linux - Networking 2 01-05-2015 02:19 PM
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 10:24 AM
Cpu fan stuck to the cpu, how do I get the cpu out? abefroman Linux - Hardware 16 09-04-2009 01:47 AM
cpu frequency scaling with Pentium(R) Dual-Core CPU E5200 @ 2.50GHz tramni1980 Slackware 5 08-16-2009 09:29 AM


All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration