Analysis of a two-queue model with Bernoulli schedules