Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

thread(3) [php man page]

THREAD(3)								 1								 THREAD(3)

The Thread class

INTRODUCTION
When the start method of a Thread is invoked, the run method code will be executed in separate Thread, asynchronously. After the run method is executed the Thread will exit immediately, it will be joined with the creating Thread at the appropriate time. Warning Relying on the engine to determine when a Thread should join may cause undesirable behaviour; the programmer should be explicit, where possible. CLASS SYNOPSIS
Thread Threadextends ThreadedCountableTraversableArrayAccess Methods o public void Thread::detach (void ) o public integer Thread::getCreatorId (void ) o publicstatic Thread Thread::getCurrentThread (void ) o publicstatic integer Thread::getCurrentThreadId (void ) o public integer Thread::getThreadId (void ) o publicstatic mixed Thread::globally (void ) o public boolean Thread::isJoined (void ) o public boolean Thread::isStarted (void ) o public boolean Thread::join (void ) o public void Thread::kill (void ) o public boolean Thread::start ([integer $options]) Inherited methods o public array Threaded::chunk (integer $size, boolean $preserve) o public integer Threaded::count (void ) o public bool Threaded::extend (string $class) o public Threaded Threaded::from (Closure $run, [Closure $construct], [array $args]) o public array Threaded::getTerminationInfo (void ) o public boolean Threaded::isRunning (void ) o public boolean Threaded::isTerminated (void ) o public boolean Threaded::isWaiting (void ) o public boolean Threaded::lock (void ) o public boolean Threaded::merge (mixed $from, [bool $overwrite]) o public boolean Threaded::notify (void ) o public boolean Threaded::pop (void ) o public void Threaded::run (void ) o public mixed Threaded::shift (void ) o public mixed Threaded::synchronized (Closure $block, [mixed $...]) o public boolean Threaded::unlock (void ) o public boolean Threaded::wait ([integer $timeout]) PHP Documentation Group THREAD(3)

Check Out this Related Man Page

COLLECTABLE(3)								 1							    COLLECTABLE(3)

The Collectable class

INTRODUCTION
Represents a garbage-collectable object. Collectable objects are intended to be used by the Pool class, replacing Threaded objects as the unit of work. They provide methods to set and detect the collectability of an object. CLASS SYNOPSIS
Collectable Collectableextends Threaded Methods o public bool Collectable::isGarbage (void ) o public void Collectable::setGarbage (void ) Inherited methods o public array Threaded::chunk (integer $size, boolean $preserve) o public integer Threaded::count (void ) o public bool Threaded::extend (string $class) o public Threaded Threaded::from (Closure $run, [Closure $construct], [array $args]) o public array Threaded::getTerminationInfo (void ) o public boolean Threaded::isRunning (void ) o public boolean Threaded::isTerminated (void ) o public boolean Threaded::isWaiting (void ) o public boolean Threaded::lock (void ) o public boolean Threaded::merge (mixed $from, [bool $overwrite]) o public boolean Threaded::notify (void ) o public boolean Threaded::pop (void ) o public void Threaded::run (void ) o public mixed Threaded::shift (void ) o public mixed Threaded::synchronized (Closure $block, [mixed $...]) o public boolean Threaded::unlock (void ) o public boolean Threaded::wait ([integer $timeout]) PHP Documentation Group COLLECTABLE(3)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Threaded Discussions for Webpages

Dear All, I run a website for a non-profit. Does anyone know where I can get free or cheap software to run threaded discussions for our website? Our website is obviously running off a unix platform. Thanks (4 Replies)
Discussion started by: evertk
4 Replies

2. Programming

Threaded 'find' utility

I need to modify my version of find in unix and get it to create and use two POSIX threads to carry out concurrent finding operations. How do i get about doing this>? If anyone could help me it would be much appreciated. Thanx Mariuca (1 Reply)
Discussion started by: mariuca
1 Replies

3. Programming

Thread Argument Passing

#include <stdio.h> #include <pthread.h> #define NUM_THREADS 4 /* function to be executed by the new thread*/ void *PrintHello(void * threadid) { printf("\n %3d:Hello World!\n",threadid); pthread_exit(NULL); } int main(int argc, char * argv) { int *taskids; int... (2 Replies)
Discussion started by: narom
2 Replies

4. What is on Your Mind?

The Hello Thread

This seems like as good a place as any to start the posting. Allo *Waves*. My name is Phil and I work IT. I have recently been hit with a big bomb in my world of work. I realized just fixing computers was not enough i needed to pic a specialty. Well, that was a bit hit for me, i never really... (4 Replies)
Discussion started by: pathological
4 Replies

5. Solaris

Thread creation in c++

Hi all! Is there a function in c++ to create new threads.I have writen a class "Thread" in which I will be calling this thread function to creat threads. Also is there a function to synchronize threads .I know that we can create objects like semaphores and critical sections to synchronize in... (2 Replies)
Discussion started by: vijlak
2 Replies

6. Post Here to Contact Site Administrators and Moderators

Thread wrongly closed

Hi my thread here was deemed to be a homework question and subsequently closed by a mod. I don't know how to prove that this has nothing to do with homework. I'm 35, out of work for 18 months. I have a Qnap TS209 and I have a folder on it with a ton of roms (as in games) that I want to compress to... (4 Replies)
Discussion started by: fistikuffs
4 Replies

7. Shell Programming and Scripting

perl thread script for renaming files

i need a threaded perl script, each thread browsing the same directory but renaming different files. Thread A renames file “aaa” to “xxx”, Thread B renames file “bbb” to “yyy” Thread C renames file "ccc" to "zzz" ..... etc (2 Replies)
Discussion started by: anand121
2 Replies

8. Red Hat

rpmdb open failed

Hi, # yum --skip-broken -y update rpmdb: Thread/process 6657/3078387392 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open... (3 Replies)
Discussion started by: sef alislam
3 Replies

9. Programming

Parallel process in java

Hello; Please Are both threads execute in parallel? Thank you (4 Replies)
Discussion started by: chercheur857
4 Replies

10. Post Here to Contact Site Administrators and Moderators

How to post a new thread?

Just joined and registered 15 minutes ago. Can't figure out how to post a new question about 'grep' I searched and found that I need to click the 'New Thread' button, I couldn't see any 'New Thread' buttons anywhere, so I searched around and ended up here where I DO see a 'new thread' button....... (3 Replies)
Discussion started by: TuftyDave
3 Replies

11. Post Here to Contact Site Administrators and Moderators

New Thread Button

Where do I find the New Thread Button so I can post a message to get some help in an issue I am having ? (2 Replies)
Discussion started by: kstalder
2 Replies