hbmarar 0 Junior Poster

Hi,

Singleton classess concept , i believe i understand. I played a bit with more use but i do not know how to modify a normal context singleton for a multithreaded environment in PHP. I do understand that multithreading is not possible in PHP or could be faked only but what if a php application could communicate with few java or c/c++ based application.

Precisely i want to know the modifications the singleton class should undergo to fit in to multithreading environment in PHP.

Searched a lot and something near i came to google and read was "Double check design patterns " and " Singlecall use". Still could not find an answer for my doubt.

With regards,

Harish

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.