تدريب Shadowing: 🔥 Java Multithreading Rapid Fire | Can You Answer These Interview Questions? #shorts - تعلم التحدث بالإنجليزية عبر الفيديو

جارٍ إنشاء الدرس...
1
What is multi -threading?
2
Multi -threading means performing multiple tasks in parallel.
3
This is done using threads.
4
Thread is basically a small unit that performs some tasks inside your application.
5
Suppose you want to perform three tasks in parallel, you can create three threads and each thread can perform one task.
6
How do you create a thread in Java?
7
There are mainly two ways.
8
Either extend a class named Thread or implement an interface named Runnable.
9
Explain the first approach.
10
We extend the thread class and override its run method.
11
Whatever task we want the thread to perform, we write inside run.
12
Then we create an object of our task class.
13
Using this object we call the start method.
14
What is the difference between start and run?
15
Start creates a new thread and then internally executes run.
16
Calling run directly does not create a new thread.
17
Explain the second approach.
18
We implement the runnable interface and override its run method.
19
Runnable only has run, it does not have start.
20
So we can't call start directly using the task object.
21
Hence we create a thread object and pass the task object to its constructor.
22
This thread object then calls start.
23
What was the need for this approach?
24
Its needed because Java does not support multiple inheritance.
25
Suppose our task class already extends another class then it won't be able to extend thread
26
but it can still implement runnable that is allowed.

السيناريو

في الحياة اليومية، يمكن أن نواجه مواقف تتطلب منا أداء مهام متعددة في نفس الوقت. على سبيل المثال، قد تحتاج إلى إعداد الطعام بينما تتابع برنامجًا على التلفاز وترد على رسالة نصية. يشبه ذلك مفهوم المعالجة المتعددة في البرمجة، حيث يمكن تنفيذ مهام متعددة في وقت واحد. في الفيديو، تم توضيح كيفية إنشاء خيوط (Threads) في لغة البرمجة جافا، مما يساعد المطورين على إدارة المهام بشكل أكثر كفاءة.

جمل وعبارات مفيدة

  • تنفيذ مهام متعددة
  • إنشاء خيط جديد
  • تجاوز الطريقة التقليدية
  • تطبيق واجهة Runnable
  • استدعاء الدالة run

تحدي ممارسة المحادثة

لتعزيز مهاراتك في ممارسة المحادثة الإنجليزية، جرب أن تتحدث بصوت عالٍ عن مفهوم المعالجة المتعددة. استخدم الجمل المفيدة التي ذكرتها سابقًا وتحدث لمدة دقيقتين حول كيفية استخدام الخيوط في البرمجة. حاول التركيز على تحسين النطق باللغة الإنجليزية من خلال طريقة التظليل في الإنجليزية، حيث يمكنك تكرار الجمل بشكل متتابع بعد الاستماع إلى الفيديو. هذه الطريقة ليست فقط مفيدة لتحسين مهارات السمع، بل تساعد أيضًا في تطوير مهارات التحدث الخاصة بك. استخدم shadowspeak لتحسين قدرتك على التعبير في المحادثات اليومية.

ما هي تقنية التظليل الصوتي؟

التظليل الصوتي (Shadowing) تقنية تعلم لغة مدعومة علمياً، طُورت أصلاً لتدريب المترجمين الفوريين المحترفين. الطريقة بسيطة لكنها قوية: تستمع لصوت إنجليزي أصلي وتكرره فوراً بصوت عالٍ — كظل يتبع المتحدث بتأخير 1-2 ثانية. تُظهر الأبحاث تحسناً كبيراً في دقة النطق والتنغيم والإيقاع وربط الأصوات والاستماع والطلاقة.

تقنية الشادوينغ: اقرأ الدليل الكامل خطوة بخطوة →