From: mpir-devel@googlegroups.com [mailto:mpir-devel@googlegroups.com] On 
Behalf Of Richard Marton
Sent: Thursday, November 08, 2012 2:09 PM
To: mpir-devel@googlegroups.com
Subject: [mpir-devel] how would you recommend me to multithread an MPIR C++ 
application? pthread?

Hi there!

I have made an RSA coder in C++ which runs on a single thread. The prime 
generation takes up most of the CPU time, I'd prefer to speed it up using 
multiple cores.
The random number is generated by MPIR and tested by the Miller-Rabin primality 
test with 40 iterations. I am using Visual Studio and my target platform is 
Windows.
What method would you recommend on speeding up the primality testing?
>>
If your platform is windows, then native threads makes sense to me unless you 
need to run it on Posix systems also.  If you need Posix support, then there is 
a Windows port of Pthreads that you can use.  Sourceforge is one place that you 
can get it.
You could also launch separate processes and use shared memory, but threading 
is probably simpler.
<<

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to