Posts

Showing posts with the label multi threading

Jython Multi Threading in wsadmin

What is the Multi threading? Multi threading is similar to how multiple programs runs on your computer system, moreover which run at same time. When you are running multiple tasks in parallel on same CPU[machine]. More cores parallel processing allowed by your VM. The simple mapping let me tell you that if you have 1 core CPU that links to Multiple threads. Do's and Don'ts in threading Let us talk about does first here: You defined tasks which are independent of each other Physics/collision calculations in on thread, graphics in another All the threads should communicate back with the main thread which actually starts them Don'ts If you don't have clarity on multi threading then whole program would mess up! so be-careful Simple Threading examples on wsadmin The following sample is from tutorial point python examples. import threading import time exitFlag = 0 class LearnThread (threading.Thread): def __init__(self, threadID, name, counter): ...