This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package barier | |
type Barier struct{ | |
N int | |
Ch1 chan bool | |
Ch2 chan bool | |
} | |
func New(N int) Barier { | |
ch1 := make(chan bool,N) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; | |
* |