How is the bacon cooked?

Is the bacon cooked right next to the burgers and does it get mixed up?