About Current Threading in JNODE
hai
what is the current Threading is in JNode??
Here the all processes are coming with different Thread Condition.
ie the euuivalent to a new FORK== new Thread(); is not ??
So then there is a class ByteQueueProcessorThread.java ...
what its functionalities??
Please explain it....
Thanks
Tango
- tango_java_06's blog
- Login to post comments
JNode Threads are Java Threads
JNode threads are Java threads. They differ from UNIX processes in important ways. For example, each UNIX process has its own address space, but a Java thread lives in the same address space as the thread that created it. To understand Java threading, I recommend getting a decent Java textbook in your native language and reading the chapters on threads / concurrent programming.
The ByteQueueProcessorThread class is a specialized thread that applies some operation (given by the defined by some object that implements the ByteQueueProcessor intreface) to bytes that it reads from a ByteQueue object. If you look at the ByteQueue class, you will see that it implements a finite sized queue of bytes with blocking peek/pop operations. Thus the BQPT class will repeatedly consume bytes put onto the queue, waiting when it becomes empty.