Thread: A thread is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently. Every thread has a priority. Threads with higher priority are executed in preference to threads with lower priority. When code running in some thread creates a new Thread object, the new thread has its priority initially set equal to the priority of the creating thread. To create a new thread, your program will either extend Thread or implement the Runnableinterface. Chat applications considered a multi-user network application, the server is going to be receiving messages from many users at once. As each message comes in, it gets added to the transcript on the server. The client applications have to check back periodically with the server to see if any new messages have arrived. If new messages are available, the clients will have to ask the server to send the messages over and then display those new messages in the GUI. The run() method in this class implements a simple update loop.
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
|