Program in parallel


 
Thread Tools Search this Thread
Top Forums Programming Program in parallel
# 8  
Old 04-28-2012
How much time does it take to run in series?

How much time does it take to run in parallel?
# 9  
Old 04-28-2012
That`s the question I have no clue where to start... How to measure that?
# 10  
Old 04-28-2012
time commandname ?
# 11  
Old 04-29-2012
Thanks

---------- Post updated 04-29-12 at 03:58 PM ---------- Previous update was 04-28-12 at 08:32 PM ----------

one more question
How to compile this code using gcc?


Im able to compile this code on windows but when I try on Unix show error

I also change the header files to :
#include <math.h>
#include <stdio.h>
#include <omp.h>
# 12  
Old 04-30-2012
In what way does it "show error"?

Can you show your code as you have it now?

UNIX code can generally be ported to Windows, but if you write code using Windows-only features that will be difficult to port to UNIX.
# 13  
Old 04-30-2012
ok I resolve the problem ....
by mistake I used different header file

Thanks for help
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl program get a response before the program quits

I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade. I have: if ( $response =~ m/^/ ) { $user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies

2. Programming

Parallel Processing Detection and Program Return Value Detection

Hey, for the purpose of a research project I need to know if a specific type of parallel processing is being utilized by any user-run programs. Is there a way to detect whether a program either returns a value to another program at the end of execution, or just utilizes any form of parallel... (4 Replies)
Discussion started by: azar.zorn
4 Replies

3. Homework & Coursework Questions

Calling compiled C program with Perl program

Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies

4. Programming

Python program faster than C++ program.

I wrote a simple program that generates a random word 10,000,000 times. I wrote it in python, then in C++ and compared the two completion times. The python script was faster! Is that normal? Why would the python script be faster? I was under the impression that C++ was faster. What are some of... (2 Replies)
Discussion started by: cbreiny
2 Replies

5. Shell Programming and Scripting

FTP in parallel.

Hi, Can anyone let me know how I can run FTP scripts in parallel. I have a script for each file to perform an FTP from mainframe to Unix. I have many files that I need to transfer and each of them is thru a script. I want to run all the scripts in parallel to reduce the time taken for FTP.... (2 Replies)
Discussion started by: bornon2303
2 Replies

6. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

7. Programming

A program to trace execution of another program

Hi, I wanted to know if i can write a program using switches and signals, etc to trace execution of other unix program which calls c program internally. If yes how? If not with signals and switches then are there any other methods apart from debugging with gdb/dbx. (3 Replies)
Discussion started by: jiten_hegde
3 Replies

8. UNIX for Dummies Questions & Answers

Parallel processing using AWK program

Hi All, could any expert tell me about writing a parallel processing program using AWK program is possible or not? Any example would be much appreciated... With Regards / Mysore Ganapati :confused: (5 Replies)
Discussion started by: ganapati
5 Replies

9. Shell Programming and Scripting

parallel processing

Hi I want to run two shell script files parallely. These two scripts are interacting with the database. can any body help on this Pls Regards Audippa naidu.M (3 Replies)
Discussion started by: audippa
3 Replies

10. Programming

running a parallel program

hi , i need to run a parallel program . for example; program1 { array=" the second program should called here : program 2" the execution should continue } the 2nd program should recieve an array of information as argument and it should... (4 Replies)
Discussion started by: bankpro
4 Replies
Login or Register to Ask a Question