I have been stuck in my task about running functions in parallel. I has tried this library multi-threading pthreads from krakjoe, but I has limit knowledge about installations in ubuntu. I has tried this amp/parallel instead and other amphp. The examples in github is running well enough, but I can't implement it by my style.
I'm not familiar with whatever semantics, if there are many example to do within this amp/parallel. I would be very happy.
The problems
i need to run one function in parallel way, I want to read report from excel File, and bulk insert all the rows to database and this proccess needs two hours to be completed. And I want to repeat this functions in parallel way. How to bulk insert and read file Excel I have knowledge to do it.
Please give me some example, whenever from blogs, website, or github about parallel functions or multi-threading in php7.2.