![]() |
object > thread |
![]() ![]() | ||||
thread (lightweight process) | ||||
subject | fact |
thread | is a synonym of lightweight process | ![]() |
belongs to a thread group which places limitations on the thread to protect it from other threads | ![]() | |
can be blocked if it is waiting for or executing another function or thread that is blocked | ![]() | |
can be paused for a specific amount of time using the sleep method | ![]() | |
can run concurrently with 1 or more other threads | ![]() | |
has definition An object used in multithreaded software systems that represents a sequence of program execution | ![]() | |
has thread priority | ![]() | |
has example public class ThreadExample implements Runnable | ![]() | |
has purpose to enable a program to appear to be doing more than one thing at once | ![]() | |
has purpose to perform a job such as waiting for events or performing a time-consuming job that the program doesn't need to complete before going on | ![]() | |
is a subtopic of Threads | ![]() | |
is supported by many operating systems and programming languages ![]() | ![]() | |
is terminated when it has finished its job | ![]() | |
is a kind of object | ![]() | |
see also multithreading | ![]() | |
see also synchronization | ![]() | |
see also Thread class | ![]() | |
stops permanently when its run method returns | ![]() | |
to create you
| ![]() | |
object | when an object is created
| ![]() |
![]() | ||
| ![]() | |
![]() | ||
can access all instance variables of all objects of its class | ![]() | |
can be encapsulated by providing accessor methods | ![]() | |
can be converted into a string using the toString method ![]() | ![]() | |
can be referred to without reference to the instance variables contained in it ![]() | ![]() | |
can be referred to by several different variables at the same time ![]() | ![]() | |
can communicate with every object to which it has access through its public interface | ![]() | |
can convert itself to a string representation using the toString method ![]() | ![]() | |
can model ![]() | ![]() | |
can notify other objects that a condition variable has changed | ![]() | |
can receive messages from
![]() | ![]() | |
can represent any entity to which you can associate properties and behaviour ![]() | ![]() | |
can return its class using the getClass method | ![]() | |
can send messages to
![]() | ![]() | |
can wait on 0 or more condition variables | ![]() | |
communicates with other objects by sending and receiving messages ![]() | ![]() | |
has example of creation String name = new String(); | ![]() | |
has part public interface | ![]() | |
hides methods from other objects using the 'private' keyword | ![]() | |
inherits instance methods and instance variables from | ![]() | |
is distinct from every other object even if they contain the same data ![]() | ![]() | |
is created by
| ![]() | |
shares every instance method of its class with the other instances of its class | ![]() | |
shares its implementation with other instances of its class | ![]() | |
shares one copy of each class variable of its class with the other instances of its class ![]() | ![]() |
Next object: uninitialized object Up: object Previous object: string