Can you have multiple threads in PHP?
Moderator: General Moderators
Can you have multiple threads in PHP?
Can you create multiple threads in php?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Probably, but since I knew what the answer would be before opening the thread, I had to consider the breviloquence of such a message. Based on this conundrum, I chose the more grandiloquent, while still inherently specific and finite .. phrase.sweatje wrote:That was a little verbose. I think
No.
would have sufficed.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Things to do...feyd wrote:Probably, but since I knew what the answer would be before opening the thread, I had to consider the breviloquence of such a message. Based on this conundrum, I chose the more grandiloquent, while still inherently specific and finite .. phrase.sweatje wrote:That was a little verbose. I think
No.
would have sufficed.
Look up breviloquence
Look up conundrum
Look up grandiloquent
Egg my English teachers house for not teaching me those words
@weirdan: I had no idea that came out the way it did... Short threads, Ha! I hadn't even paid attention to the fact that this thread was about threads and that replying with the word thread was inherently going to cause me to look like a caught unawares @$$.
Heh, how does it feel to be in my shoes?Things to do...
Look up breviloquence
Look up conundrum
Look up grandiloquent
Egg my English teachers house for not teaching me those words
To understand 'breviloquence' I had first to lookup this term in the wikipedia and then use multitran.ru to translate the definition to Russian
I appreciated your messages affability. It had an air of congeniality, without the aloof connotations of the more concise version. Even in your subsequent repartee, you had no need to resort to truly sesquipedalian vocabulary. You definitely have the penultimate vocabulary on PHPDNfeyd wrote:Probably, but since I knew what the answer would be before opening the thread, I had to consider the breviloquence of such a message. Based on this conundrum, I chose the more grandiloquent, while still inherently specific and finite .. phrase.sweatje wrote:That was a little verbose. I think
No.
would have sufficed.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Wow... I hadn't noticed it says Ukraine in your location. Your (bulletin board) english is indistiguishable from the rest of the regular posters here.Weirdan wrote:To understand 'breviloquence' I had first to lookup this term in the wikipedia and then use multitran.ru to translate the definition to Russian.
In the OS Windows you can' t have multithreading for PHP in UNIX you can have using what astions said.
Some clarification on threads or process
Some clarification on threads or process
For more information on threads and process visit http://en.wikipedia.org/wiki/MultithreadingA process is the "heaviest" unit of kernel scheduling. Processes own resources allocated by the operating system. Resources include memory, file handles, sockets, device handles, and windows. Processes do not share address spaces or file resources except through explicit methods such as inheriting file handles or shared memory segments, or mapping the same file in a shared way. Processes are typically pre-emptively multitasked. However, Windows 3.1 and older versions of Mac OS used co-operative or non-preemptive multitasking.
A thread is the "lightest" unit of kernel scheduling. At least one thread exists within each process. If multiple threads can exist within a process, then they share the same memory and file resources. Threads are pre-emptively multitasked if the operating system's process scheduler is pre-emptive. Threads do not own resources except for a stack and a copy of the registers including the program counter.
