Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ480
Page ↗
Q480DVASIC interview problem

Reason about same-region forked output order

TechniquesDVSystemVerilogFork joinSchedulerRace conditions
DifficultyEasy
TopicSystemVerilog Scheduling
LanguageSystemVerilog
Format4 choices
01

Problem

Three sibling processes created by one fork each call $display immediately, with no delay, event, or other synchronization. What output order is guaranteed?

Starting declarationSystemVerilog
fork
  $display("A");
  $display("B");
  $display("C");
join
02

Answer choices (4)