Which amongst the following is valid syntax of the Fork and Join Primitive?
Answer: B) Fork <label> Join <var> Join <label>
The Fork and Join Primitive is used in concurrent programming to control the execution of multiple processes.
- Fork: Starts a separate process or transfers control to another execution path identified by a label.
- Join: Synchronizes the processes by making execution wait until the required process or processes have completed.
In the given options, B is the intended valid syntax because it uses the Fork and Join primitives with labels and variables.
Fork and Join Primitive Concurrent Programming मा एकभन्दा बढी Processes को Execution नियन्त्रण तथा Synchronize गर्न प्रयोग गरिन्छ।
- Fork: अर्को Process वा Execution Path सुरु गर्न प्रयोग हुन्छ।
- Join: आवश्यक Processes पूरा नभएसम्म Execution लाई पर्खाउन प्रयोग हुन्छ।
दिइएका विकल्पहरूमध्ये Fork र Join दुवैको संरचना प्रयोग गरिएको विकल्प B हो।
Exam Tip: Fork ले Concurrent Execution सुरु गर्छ भने Join ले विभिन्न Processes बीच Synchronization कायम गर्छ।
Note: यो प्रश्नमा प्रयोग भएको Fork/Join notation कुन पाठ्यपुस्तक वा औपचारिक भाषा अनुसार हो भन्ने स्पष्ट छैन। त्यसैले B लाई सम्भावित Exam Answer मान्नु उचित हुन्छ; यसको exact syntax पुष्टि गर्न मूल पाठ्यस्रोत आवश्यक पर्न सक्छ।

