Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How To Run This Project

If you just clone it now

  1. Turn to the directory src/main
  2. Run the following command

Step1 Linux

# Build wc.go
go build -buildmode=plugin ../mrapps/wc.go

# Run the coordinator
go run mrcoordinator.go pg*.txt
# Run in race mode
go run -race mrcoordinator.go pg*.txt

# Run the workers
go run mrworker.go wc.so

# Check the result
cat mr-out-* | sort | more

If you have already run the project before

  1. Clear the intermediate files
  2. Run the command above

Step2 Linux

# Clear the intermediate files
rm -rf mr-* wc.so

If you want to meet the res to the professional version

Step3 Linux

sort -V -k1,1 -k2,2 mr-out* | grep . > mr-wc-all

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages