This is my first application with multi thread concept.
Folder contains the more than 10 flat file, each flat file is 4 gb.
my script nearly took the 1 hrs for 1 flat file, so how to implement the parallel processing, and execute all files in multiple thread.
How i am reading file from folder ?
just using while loop, call the SP inside while, flat file are the input for the SP.
What i want is : execute all flat file in one shot.
PHP does NOT support multi-threading. But you have control over processes.
Take a look at http://www.php.net/manual/en/ref.pcntl.php
Also you can use
cUrl