Skip to content

Instantly share code, notes, and snippets.

package barier
type Barier struct{
N int
Ch1 chan bool
Ch2 chan bool
}
func New(N int) Barier {
ch1 := make(chan bool,N)
/*
* this version of the employee table definitions (p 91 of Elmasri-Navathe 6th ed)
* uses the ALTER TABLE option so that foreign key declarations do not precede
* the relevant table definition
*
* Also, tabs were eliminated for easier copy/paste
*
* if things get wedged, foreign-key constraints can be DROPPED:
* alter table employee DROP foreign key dno;
*