Due to some unforeseen circumstances that don't make any logical sense but happened anyway, the four branches of the store I work for, all owned by one franchisee, are short four people today. So here I am in the store in Saldhana, with practically nothing going on. Because of this, and since I have now read every freakin' halfway decent story on FIMFiction (and stopped myself from descending into that mess too far), I decided that it was time to write a blog… On this accursed iPad.
So, how about I talk a bit about the way the CPU works, how it executes code, and how it controls external devices? Interested? Good.This will be a long blog, unless I miraculously get a troop of people wanting to buy water on one of the rainier days I've seen in a few weeks.The CPUPossibly one of the most misunderstood pieces of hardware in the system. I frequently find myself wanting to punch somebody when they ask how 'fast' a processor is, and gawk like idiots without understanding what the implications of the 'speed' are.Another delusion is that it is a single piece of hardware. It's actually a self contained system, containing several unique components.Among these exist the System Clock, the data bus, an instruction fetcher, an execution module (which is a wonderfully complex gathering of logic gates), an interrupt line (often connected to an external PIC, or Programmable Interrupt Controller), an APU (Arithmetic Processing Unit), an internal cache, and a few hardware registers.The CPU's job is very simple in theory: it fetches the next instruction from the data bus, executes it, and repeats the cycle. More realistically, the CPU can also receive 'interrupts', hardware induced triggers that usually make the CPU save its state and execute a special handler defined by the Resident OS.The number of instructions a CPU can execute per second is the commonly referred to 'speed'. One megahertz is equivalent to 1,000,000 instructions per second. One Gigahertz is equivalent to 1,000,000,000 instructions per second. Got it?Of course, here's where trouble sets in. The CPU is extremely fast. The RAM, on the other hand, is not. RAM is also locked to a specific frequency, relating to the number of fetch requests that can be handled per second, also described in MHz or GHz. On most budget RAM modules, the frequency is much lower than the CPU's potential request frequency. I'll expand on this shortly. UpdateI'm too demotivated at the moment to continue this; ask questions, that'll probably get me going again.Just a few interesting things I failed to mention in my last few blogs: I finally got myself a proper headset (With a decent microphone and bass amplification. Heck yeah!).Then I bought myself Just Cause. And I'm finding it absolutely hilarious and from here on in I decree that any game with vehicle based combat ought to allow you to jump out onto the front of the vehicle and parachute off, or grapple with the traffic… Heheh.
Just try to imagine Unreal Tournament with players able to hitch rides like that… sniper heaven.
Hm, it's raining here as well…
So a kilohertz would be 1000 instructions per second right? and a single hertz would be 1 instruction right? So my question: Why would anyone call an instruction a hertz?*looks up on google*Hertz apparently means "cycles per second"That's pretty cool :) I always thought some instructions took longer than others.Because the processor is only half of the equation in the majority of situations. Of course, if you could fit entire programs in the cache, the processor can operate at full speed, but when dealing with any external devices, and that includes the RAM, PCI controller, and IDE controller, it can take several cycles while the CPU waits for the request to be dealt with. A negligible time, for the most part.
I won't really punch people in the face, I'll just argue a lot and make them want to punch -me- in the face. :3Speaking of which, it's insignificant until you're dealing with people who are supposed to know these things.
There's the problem; it may or may not make the system faster. One of the primary reasons I haven't bothered upgrading my PC yet is that getting a Core i3/5 with my current setup will be no faster than the system I already have, because the RAM is the bottleneck (Cheap DDR2 modules, noname brand.)
Of course, I should've worded my blog more carefully. I'm no changing it now, I can't type at full speed on an iPad.*kicked*
Because bumping it isn't as funIs wireless cheaper than 30 metres of CAT3? CAT3 is pretty expensive if you get it retail
and don't just take it from work like I do.CAT3 is dirt cheap around here; I already have a wireless adaptor, but the radio interference is too high; and buying an amplifier/extender would cost more than the cable, so…