Threading and multi users

Threading and multi users

Hi,

I have developed a server application using the PHP-SDK.
As a quick overview, we have an office of multiple users who all interact with the Zoho CRM throughout the day and the application automates a few of the tasks we perform.

Each user uses a shared 3rd party client application which in turn connects to the PHP-SDK server app to perform a task on ther CRM. This works fine but since threading is unsupported in all versions of the PHP-SDK, I have to implement my own concurrency control (users' tasks are added to a queue). I had previously migrated from PHP-SDK V2 to V5 in order to make use of the multi-user support but unfortunately this isn't the same thing as threading.


So what does a typical PHP-SDK application look like when incorporating multi-user support?
From the sample code, multiple users interact with the Zoho CRM in the same code block, just switching between the users. This isn't appropriate to my application but I'm interested in what scenarios this would be appropriate.

I have more ideas on future projects but multiple users will require the ability to interact with the CRM at the same time.

Looking over the Java API, I see that it supports threading. Would, for example, substituting the Java API with the PHP API (in the case of my described application) work? In the sense that multiple users can all authenticate themselves and perform their tasks at the same time?

Any input would be greatly appreciated
Thanks