Re: dual core and c



In article <fc3a1730-b0c1-47d7-b592-3d64c037d837@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
kerravon <kerravon@xxxxx> wrote:
Assuming I am running a C program that is doing some cpu-intensive
work
such as zip -9, I can understand:

If I have 8 CPUs, then it will make no difference at all to the zip
program,
it will only run on one of the CPUs,

Quite possibly true that it would only run on one of the CPUs
(or cores), but you might be interested to know that several
standard compression algorithms turn out to be ameniable to
"divide and conquer" strategies using multiple CPUs or multiple
cores. For some of the algorithms, there would be no loss of
compression ability at all (e.g., there are parallel sorting
algorithms for the block sort phase); for others of the algorithms,
(including standard LZW type of algorithms), there would be a minor
loss of compression efficiency but a fair reduction in CPU time.
--
"The slogans of an inadequate criticism peddle ideas to fashion"
-- Walter Benjamin
.



Relevant Pages

  • Re: 32-bit vs. 64-bit x86 Speed
    ... 64-bit x86-64 architecture can be slower with some code patterns. ... and register replacement algorithms that run ... Cray uses SRAM with the AMD x86-64 CPUs, so the RAM state doesn't need ... algorithms effecting the cache replacement, ...
    (comp.compilers)
  • Re: 2 dual-core processors.Is matlab able to use t
    ... Just having two CPUs does not magically make everything run faster. ... embarrassingly parallel) and written by someone to make use ... but BLAS people just can't rewrite your algorithms. ...
    (comp.soft-sys.matlab)
  • Re: Emulating PTHREAD_MUTEX_RECURSIVE - recursive mutex implementation...
    ... Lock-free algorithms do not claim their implementations are portable. ... In any event, real programmers code to ... rely on guarantees that current CPUs "happen to" provide. ...
    (comp.programming.threads)
  • nice is not nice; SCHED_ULE problem?
    ... I have a laptop that has 2 AMD CPUs. ... I started 2 lzma compression processes with nice +10 and +20. ... Then, I started to compile a port, qemu. ... FreeBSD is a registered trademark of The FreeBSD Foundation. ...
    (freebsd-current)
  • Re: Transfer Rate Limited to 20Mbit/sec ssh 3.0.2p1
    ... It's quite possible that the limiting factor is the encryption speed ... that your CPUs are capable of. ... Are you using compression? ... it slows things down even further. ...
    (comp.security.ssh)