Author Topic: 2 Thread demo programs.  (Read 957 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8492
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
2 Thread demo programs.
« on: October 26, 2020, 05:10:45 PM »
There is a massive range of thread based applications using a wide array of different architectures, these two demos are simple and the techniques are extendable depending on what task you want to perform.

The demo "simple" is for simple tasks like loading a file then exiting, something that is useful without locking up the main app.

The demo "reuse" uses a different technique, starting a thread suspended and resuming its execution when it is required to do something.

There are many combinations of thread based techniques and while most personally written software is old style single thread, there is big gains in being able to use the multiple core CPUs that have been available for the last 10 years or so.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

daydreamer

  • Member
  • *****
  • Posts: 1719
  • building nextdoor
Re: 2 Thread demo programs.
« Reply #1 on: January 25, 2021, 09:09:10 AM »
so this resumethread can be done in 32bit too?
seem good way to solve app being active and for different reasons got passive
SIMD fan and macro fan
why assembly is fastest is because its switch has no (brakes) breaks
:P
only in 16bit assembly you can get away with "Only words" :P