October 2014
Intermediate to advanced
280 pages
7h 20m
English
Run the Fibonacci code on your machine. Do you get comparable timings? If your machine has multiple cores and/or processors, do you see improvements in the timing as we increase the application’s concurrency?
Take this scheduler code and update it to let you run a function that finds the number of times the word “cat” appears in each file in a given directory. Run one server process per file. The function File.ls! returns the names of files in a directory, and File.read! reads the contents of a file as a binary. Can you write it as a more generalized scheduler?
Run your code on a directory with a reasonable number of files (maybe around 100) so you can experiment ...
Read now
Unlock full access