Day 27: Tuesday, April 15, 2014ΒΆ

  1. Read http://en.wikipedia.org/wiki/Asynchronous_I/O

On branch day27, I’ve changed image.py (link) to do SQLite saving/loading of images.

Look at the changes to server.py on day27-threading (link) and day27-async (link).

Question – does the ‘add_image’ function (lines 35-54) in image.py need to be protected from concurrent execution in (a) threading and (b) async?

If (a) threading is YES and (b) async is YES, choose pink.

If (a) threading is YES and (b) async is NO, choose green.

If (a) threading is NO and (b) async is YES, choose yellow.

If (a) threading is NO and (b) async is NO, choose blue.


Previous topic

Day 28: Thursday, April 17, 2014

Next topic

Homework 12

This Page

Edit this document!

This file can be edited directly through the Web. Anyone can update and fix errors in this document with few clicks -- no downloads needed.

  1. Go to Day 27: Tuesday, April 15, 2014 on GitHub.
  2. Edit files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
  3. Fill in the Commit message text box at the bottom of the page describing why you made the changes. Press the Propose file change button next to it when done.
  4. Then click Send a pull request.
  5. Your changes are now queued for review under the project's Pull requests tab on GitHub!

For an introduction to the documentation format please see the reST primer.