News:

Pretty crazy that we're closer to 2030, than we are 2005. Where did the time go!

Main Menu

My new toy..

Started by Joe, August 22, 2007, 04:18:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe

A HP Compaq 6710b Notebook!

Yeah, I know Compaq's aren't really computers at all, but actually a work of the devil, but this is sort of GI (it's my school machine) so I just have to deal with it. It's a pretty decent machine, equipped with 1GB of RAM (in a single slot, so if I feel like dumping $200 into another SODIMM, I can!) and a (IMO, blazing fast) Intel Core 2 Duo 2.00GHz (so, 4GHz?) processor. As soon as I get my everyday things situated on this, I'll probably end up using this as my main machine.

By the way, does anyone know how to kill NetNanny? It told me I wasn't allowed to view the board index because it had mature/adult content.. which doesn't really surprise me. Lol, it's process can be killed and simply disabled in msconfig. WHO WILL PROTECT YOUR CHILDREN NOW, NANNY? MUAHAHAHA. Sorry.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Chavo

Having a dual core processor does not mean you have performance comparable to twice the frequency of a single core.

iago

According to the commercial for future shop, not only is dual core "way faster than previous generations", they advise you to get "2gb of ram so you can run multiple programs". Have fun running a single program, sucker!

(Note: Future Shop is the Canadian version of Best Buy (and owned by BB, too), and I really hate their commercials.)

chuck

Quote from: iago on August 22, 2007, 09:26:56 AM
According to the commercial for future shop, not only is dual core "way faster than previous generations", they advise you to get "2gb of ram so you can run multiple programs". Have fun running a single program, sucker!

(Note: Future Shop is the Canadian version of Best Buy (and owned by BB, too), and I really hate their commercials.)
Future Shop is also overpriced... CompuSmart was alot better than them till they stopped doing retail. :(
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

Joe

Quote from: unTactical on August 22, 2007, 08:51:56 AM
Having a dual core processor does not mean you have performance comparable to twice the frequency of a single core.

I'm sort of having difficulty understanding exactly what is what. I know that a single thread only runs on a single core, but if I'm using multiple programs (say, I'm converting WMA to MP3 in one programming and browsing the web in another), the programs will be split between the two cores doubling the possible workload that it can handle, correct?
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Chavo

In theory, the effective speed is comparable to double a single cores speed (~190-195% max efficiency even in theory) but that requires the programs running on the processor to support the dual core ISA.  If you know how HyperThreading works, you know that only programs designed to take advantage of it benefit.  If you want to know more, I can probably find something online or recommend a couple books regarding computer architecture. 

Joe

That'd be cool! I'm sort of interested in both sides of the concept (the user side and programmer's side) since I plan on using this machine for development as well.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Chavo

#7
You can start with wikipedia: http://en.wikipedia.org/wiki/Multi-core_%28computing%29
and: http://en.wikipedia.org/wiki/Parallel_computing

Most of the links aren't that great though, I'll look through my books when I get home and see if any are entry level enough.

MyndFyre

Quote from: unTactical on August 22, 2007, 09:14:02 PM
In theory, the effective speed is comparable to double a single cores speed (~190-195% max efficiency even in theory) but that requires the programs running on the processor to support the dual core ISA.  If you know how HyperThreading works, you know that only programs designed to take advantage of it benefit.  If you want to know more, I can probably find something online or recommend a couple books regarding computer architecture. 

A book such as Windows Internals might also be worthwhile.  It is of course more specific to Windows programming, but it is enlightening nonetheless.

In Windows, the scheduler assigns processor time on a per-processor, per-thread basis.  Threads are not assigned priority based on a process, unless the process or thread has been given process affinity.

By saying that a program must be designed to take advantage of hyperthreading or dual-core systems, for Windows specifically, that means that you'd only need to create multiple threads in order to take advantage of these kinds of benefits.

Cool, huh? :)
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Chavo

#9
That's not completely accurate :)  The OS definately has the job of optimizing multithreading, especially with multiple processors/cores (Parallelism).  However, there is significant optimization that has to be done at the instruction set level.  The OS can't do anything about this ;)  I don't know of any OS that will actually modify the binary executable to use new or optimized instructions.  That would be pretty cool though.  I suppose the trade-off in run-time optimization might not produce a net benefit though.

The comparison is similar in principle to 64bit application development compared to 32bit applications.  The OS has to first support the extended instruction set and the application has to take advantage of the larger field sizes where applicable as well.

It's very difficult to show this with benchmarks because so much of the time doing a given task is spent accessing memory, transferring data to/from secondary memory, etc.  Of course, that just shows the diminishing returns of the current PC architecture.

MyndFyre

Quote from: unTactical on August 29, 2007, 12:59:05 PM
However, there is significant optimization that has to be done at the instruction set level.

It depends on what you're talking about.

If you're talking about whether two threads can run in parallel, no additional coding is required to achieve this in a Windows program, short of creating and starting a new thread.

If you're talking about whether two threads can manipulate and perform calculations on the same series of data in parallel, well then you're right.  You run into problems such as concurrency.  You also frequently see problems with making sure that instructions can be executed out-of-order and achieve the same result.  But this isn't the same as what I said about dual-core/multi-core systems programming in a Windows environment. :P
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Chavo

My point was that Parallelism is only one piece of the 'advantages of multiple cores' pie.

Camel

I started development my bot primarily on a single-core machine. When I got my X2, I realized I was missing quite a bit of synchronization. Fortunately, it's very easy to solve those problems in Java. While it's not impossible for these types of issues to come up in a single-core operating environment, it's less likely by an extremely large factor. Before you dive in, I'd strongly recommend learning about synchronization, in addition to the aforementioned topics.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Newby

Whenever I see this topic, I think you bought some sort of sex toy or dildo. :/
- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

MyndFyre

Quote from: Newby on September 04, 2007, 07:53:03 PM
Whenever I see this topic, I think you bought some sort of sex toy or dildo. :/

Who doesn't enjoy them??
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.