wiki:ExampleApps

Version 3 (modified by davea, 17 years ago) (diff)

--

Example applications

BOINC provides several example applications. See the instructions for building BOINC applications.

The example applications are:

  • example_app: a full-featured example BOINC application. The application does things (like checkpointing and graphics) that can be tricky or confusing. You can use it as a template for your own BOINC application; just rip out the computation part (which is trivial) and replace it with your code.

You can run the application standalone. Create a file 'in' in the directory where you run it; it will convert it to upper case and write it to 'out', and use 20 seconds of CPU time. You can also run the graphics app standalone; it will show a bouncing 3D ball. If you copy the files boinc/txf/Helvetica.txf and boinc_samples/uppercase/logo.jpg to the directory where it runs, you'll also see an image and some nice-looking text (thanks to Tolu Aina for the latter).

  • upper_case: an example app using old-style graphics. Deprecated.
  • wrapper: used to support legacy applications.
  • worker: a representative legacy application (i.e. it doesn't use the BOINC API or runtime library). Used for testing wrapper.
  • sleeper: test application for non-CPU-intensive projects (used for testing the BOINC core client).