انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-007-L05

التزامن المهيكل (حالة المعاينة)

  • الدرس 5 من 6
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

understand the idea and its status.

الموضوعات المخطط لها

  • Structured concurrency: subtasks live inside a scope, and the scope waits for them, so lifetimes are clear.
  • A failure can cancel sibling tasks; no leaked threads.
  • API: StructuredTaskScope with fork and join; its status has been preview and the API has changed (verify version before recording).
  • Using preview APIs needs --enable-preview; avoid in production unless the team accepts the risk.
  • Compare with CompletableFuture fan-out from MID-006.
تفاصيل المخطط المبدئي

عرض عملي

java
// conceptual: fork product, stock; join; failure cancels the other

اختبر فهمك

Why is a preview API risky for production?

أظهر الإجابة

It may change or be removed between releases.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.