In reply to dave_59:
Hi Dave,
In the above code, below statement gets executed immediately i.e. does not wait for #1 scenario of the next iteration.
automatic int k = j;
Is this because of the below reason mentioned in LRM?
LRM:
Variables declared in the block_item_declaration of a fork-join block shall be initialized to their
initialization value expression whenever execution enters their scope and before any processes are spawned.
Thanks