+ 12

I wanna make multithreading my program, how can i do it? Gimme some advice please.

https://code.sololearn.com/cFic7Klpy1N2/?ref=app #include <iostream> using namespace std; void scomposizione(unsigned long long int x) { for(unsigned long long int y=2; y<=x; y++) { if(x%y==0){ x/=y; cout<<y<<"*"; y--; } } } int main(){ unsigned long long int numero=0; cin>>numero; cout<<numero<<"="; scomposizione(numero); cout<<"1"<<endl; return 0; }

23rd Apr 2017, 11:14 PM
Umbe
Umbe - avatar
1 Réponse
+ 1
You need this: Eclipse for Parallel Application Developers https://eclipse.org/downloads/packages/eclipse-parallel-application-developers/neon3 OpenMP Tutorial: https://googleweblight.com/i?u=https://computing.llnl.gov/tutorials/openMP/&grqid=Z6AdlJNO&hl=en-IN For more help: search on google about "OPENMP with c++". Happy Coding....😊
24th Apr 2017, 8:55 AM
Sandip Bhambre (Sandy)
Sandip Bhambre (Sandy) - avatar