VPython Multithreading: Difference between revisions

From Physics Book
Jump to navigation Jump to search
Line 5: Line 5:
==Overview==
==Overview==


Multithreading is the ability to execute multiple processes (or threads) concurrently.  As this relates to physics, it allows us advanced and complex computations to be performed more efficiently.  The asynchronous potential of multithreaded programs supports smoother graphical renderings and more accurate user input as well.
Multithreading is the ability to execute multiple processes (or threads) concurrently.  Instead of a single execution flow, multiple program paths may be followed as once. 
 
As an analogy, think of multithreading as a single employee vs. an assembly line.  A car could simple be worked on by a singular person.  It may also, however, be worked on by multiple people performing their own tasks at the same time.  The idea of multiple tasks being executed at the same time is the essence of multithreading.


===Advantages===
===Advantages===
Insert text here
As this relates to physics, it allows us advanced and complex computations to be performed more efficiently.  The asynchronous potential of multithreaded programs supports smoother graphical renderings and more accurate user input as well.
===Disadvantages===
Insert text here
Insert text here



Revision as of 01:27, 4 December 2015

Claimed by Philip Bale

Here we discuss multithreading as it relates to advanced VPython physics computations

Overview

Multithreading is the ability to execute multiple processes (or threads) concurrently. Instead of a single execution flow, multiple program paths may be followed as once.

As an analogy, think of multithreading as a single employee vs. an assembly line. A car could simple be worked on by a singular person. It may also, however, be worked on by multiple people performing their own tasks at the same time. The idea of multiple tasks being executed at the same time is the essence of multithreading.

Advantages

Insert text here As this relates to physics, it allows us advanced and complex computations to be performed more efficiently. The asynchronous potential of multithreaded programs supports smoother graphical renderings and more accurate user input as well.

Disadvantages

Insert text here

A Mathematical Model

What are the mathematical equations that allow us to model this topic. For example [math]\displaystyle{ {\frac{d\vec{p}}{dt}}_{system} = \vec{F}_{net} }[/math] where p is the momentum of the system and F is the net force from the surroundings.

A Computational Model

How do we visualize or predict using this topic. Consider embedding some vpython code here Teach hands-on with GlowScript

Examples

Be sure to show all steps in your solution and include diagrams whenever possible

Simple

Middling

Difficult

Connectedness

  1. How is this topic connected to something that you are interested in?
  2. How is it connected to your major?
  3. Is there an interesting industrial application?

History

Put this idea in historical context. Give the reader the Who, What, When, Where, and Why.

See also

Are there related topics or categories in this wiki resource for the curious reader to explore? How does this topic fit into that context?

Further reading

Books, Articles or other print media on this topic

External links

[1]


References

This section contains the the references you used while writing this page