CompSci 491, Intro. to Networks and PDC

Index: Announcements, Notes, Software Links


to Newest entry.

Posting Date Item
(start of semester) Welcome to CompSci 491, Intro. to Networks and PDC.
This page will contain announcements and updates that occur throughout the semester.

Scroll down or check the links above left for specific course materials. Check "Class Notes, below" for online versions of material covered in class.


Connecting to Raspberry Pi in the lab

Here is the script that sets up a Hardware Lab computer to connect to a Raspberry Pi:

Download this script on the host computer, and run it with python Then connect your Raspberry Pi and wait for it to assign an IP address to the host computer.

2018-12-06 Final exam — take-home.

Class Notes

Date Item
2019-10-22 (These slides are nearly the same. Will be sorted out tomorrow.)
2019-10-23 Textbook material on multithreading/parallel programming:
2019-10-24 Textbook material on multithreading/parallel programming:
2019-11-06 pi-darts-solution — solution to assignment 3, Pi approximation with OpenMP.
2019-11-18 Solution to assignment 4, Conway's Life with Pthreads:
2019-11-26 Example OpenMPI programs:
2019-12-02 More example OpenMPI programs:
2019-12-03 More example OpenMPI programs:



MPI sample programs and exercises
Tutorial page on MPI, with example programs including ones with errors for study. From Lawrence Livermore National Laboratory.
How to Design a Parallel Program
Detailed tutorial on the use of OpenMP, with coding examples/exercises.


Operating System image

64-bit RaspiOS image
64-bit OS for Raspberry Pi 4B, 3B+, and 3B.

Customized for headless operation. Suitable for use as the head node, and as the secondary nodes, with tweaking.

for Windows users

Install these programs on your computer as needed. The first, "Raspberry Pi Imager", will be used once to copy the OS image onto your microSD card.

The "Xming" software is an X Window server.

"PuTTY" is an remote-connection tool that opens an SSH session to a host such as the Raspberry Pi. Once you are logged in, you can start a GUI program (such as an editor) that will connect to Xming to display the window.

for MacOS and Linux users

Needed software is standard on these operating systems.
  1. Insert microSD card into USB adapter; plug USB adapter into computer.
  2. Determine what device the card appears as: for example, "/dev/sdc".

    One way to do this is with the "dmesg" command. It will show you the most recent hardware activity; you should see that the card was recognized as "dev/sd???".

  3. If the card was automounted by the computer, unmount it again (but leave it plugged in).
  4. Run this command: sudo dd bs=4M status=progress if=devuanpi.2018-08-25.img of=/dev/sdc Change the image file name and output device as needed.
  5. When that's done, run the command: sync
  6. Remove the card and use it.

There is also a Raspberry Pi Imager utility that can do the "burning". See the information under "for Windows users", above.