Include Threads in Moodle

Include Threads in Moodle

by Revathi M -
Number of replies: 1

Hi,

We are building the site with huge number of students. The enrolments are high due to the user count. for optimising  the performance we are planning to go for thread concept. 

If any one know how to include the pthreads Please help me.

my php version is 7  extension version is 13, downloaded pthreads and included in php and php\ext folder. My local host showing thread safe. If i include the thread class the moodle site is not loading. 

Help needed.

Average of ratings: -
In reply to Revathi M

Re: Include Threads in Moodle

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hallo Revathi

Your plan doesn't make any sense. As opposed to single big calculations, which needs to be broken in to small chunks for parallel processing, Moodle is a web application. It already gets its work in form of a large number of browser requests. Means, there is no need to break the job in to small chunks as in big single calculations. The threading is handled by the web server at the operating system level. See http://dubbo.apache.org/en-us/docs/user/demos/thread-model.html for the Apache thread model.

If your question is how to build a Moodle server for heavy loads, there is a dedicated forum, the Hardware and performance forum, for that. Have a careful look at its documentation https://docs.moodle.org/en/Performance and https://docs.moodle.org/en/Performance_FAQ. There is also a knowledge base in form of recent discussions.