Skip to content

Tag Archives: Ruby Thread-class

Thread#terminate() : terminate() is a Thread class method which is used to terminates the thread and schedules another thread to be run. Syntax: Thread.terminate() Parameter:… Read More
Thread#kill() : kill() is a Thread class method which is used to terminates the thread and schedules another thread to be run. Syntax: Thread.kill() Parameter:… Read More
Thread#exit() : exit() is a Thread class method which is used to terminates the thread and schedules another thread to be run. Syntax: Thread.exit() Parameter:… Read More
Thread#backtrace() : backtrace() is a Thread class method which returns the current backtrace of the target thread. Syntax: Thread.backtrace() Parameter: Thread values Return: the current… Read More
Thread#add_trace_func() : add_trace_func() is a Thread class method which adds process as a handler for tracing. Syntax: Thread.add_trace_func() Parameter: Thread values Return: adds process as… Read More
Thread#alive?() : alive?() is a Thread class method which checks whether the thread is running or sleeping. Syntax: Thread.alive?() Parameter: Thread values Return: true –… Read More
Thread#abort_on_exception() : abort_on_exception() is a Thread class method which returns the status of the thread-local “abort on exception” condition for this “thr”. Syntax: Thread.abort_on_exception() Parameter:… Read More
Thread#abort_on_exception=() : abort_on_exception=() is a Thread class method which sets the raised exception to true or false Syntax: Thread.abort_on_exception=() Parameter: Thread values Return: sets the… Read More
Thread#backtrace_locations() : backtrace_locations() is a Thread class method which returns the execution stack for the target thread—an array containing backtrace location objects. Syntax: Thread.backtrace_locations() Parameter:… Read More

Start Your Coding Journey Now!