[CoLoCo] How do I make a program fully utilize my dual-core processor?

James Wyatt james.r.wyatt at gmail.com
Sat Oct 3 14:35:00 BST 2009


Assuming both instances can work on different hashes you could run your
app twice and assign processor affinity to each process.

http://www.linuxjournal.com/article/6799

You could do something with erlang if you wanted to do it with style,
but that would certainly be overkill.

Jim



On Sat, Oct 3, 2009 at 1:31 AM, Ringo <2600denver at gmail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hey Ubuntu experts,
>
> I've got an intel dual-core processor which Ubuntu (intrepid) runs great
> on. It will fully utilize both cores if I've got lots of programs
> running but each program is confined to only one core.
>
> I've looked around online to find out how to make a program use both
> cores, but I can't find any advice on this outside of the convoluted
> process of running a program inside a virtual machine. I'm trying to
> recover a password from a hash and one core is at 100% while the other
> is around 3% usage.
>
> Any ideas?
>
> Thanks,
> Ringo
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkrG/ekACgkQETpif9i/srqI1QCeIucpP2Vc2h3I3RasTOct5j6c
> UDAAmQHjf9QUE2P4bd3SXc3uigdXqV0z
> =nfQU
> -----END PGP SIGNATURE-----
>
> --
> Ubuntu-us-co mailing list
> Ubuntu-us-co at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-us-co/attachments/20091003/5048ba77/attachment.htm 


More information about the Ubuntu-us-co mailing list