akshay-sulakhe
October 21st, 2013, 08:50 PM
Hello friends,
Before starting off, apologies for the misguided title, but i really dont know what to write in title for this programming doubt.
compute_credit(param1, param2 , param3){
// How to replace this computation logic with a executable C file, to which i will pass these 3 parameters. Ideally, fork replicates the process. I was thinking of calling the fork here and then exec. But then everytime this function is called, there would be a fork call and soon I will have numerous processes in my system? Any ideas?
}
I hope I was clear, If there is any doubt, please let me know. Thank you for your time!
Before starting off, apologies for the misguided title, but i really dont know what to write in title for this programming doubt.
compute_credit(param1, param2 , param3){
// How to replace this computation logic with a executable C file, to which i will pass these 3 parameters. Ideally, fork replicates the process. I was thinking of calling the fork here and then exec. But then everytime this function is called, there would be a fork call and soon I will have numerous processes in my system? Any ideas?
}
I hope I was clear, If there is any doubt, please let me know. Thank you for your time!