In reply to bdreku:
Note that although SystemVerilog allows global shared variables in a package, having two processes concurrently accessing to them is not a generally good programming practice. Better to use a mailbox or some combination of semaphores and queues (which can sill be declared inside a common package).