Re: Multitasking vs. multithreading

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kevin Sieger wrote:
>
> Seems I am having trouble here...I've got some code for multitasking in
> the Pascal environment, and I'm thinking of implementing this simple
> multitasking in a game I am developing.  I remember months back
> searching Dejanews that someone had suggested multithreading for a
> multiuser game.  After many searches on inet, I've been unable to find
> any decent multithreading examples.  Just what is the difference between
> multitasking and multithreading.  And, I do believe the tasking is
> easily done in Euphoria, but what about the threading?
>
> Thanks!!
> Kevin

I'm no expert on this, as yet I've never written anything using
multithreading. My understanding of the difference between the two
is this; multitasking simply refers to running two seperate programs
concurrently, multithreading is used to run two processes within the
same program concurrently. Multithreading simply isn't possible under
Dos. I think I remember reading the old doshell program "emulated"
multitasking of programs ran in it, but by some definition it was
regarded as not being "true" multitasking.
The win95 system offers both. Multitasking takes place all the time as
you run two programs at the same time. Multithreading is set up through
calls to the kernel32.dll interface. I also understand it to be that
multithreading does not increase the speed of your programs unless
you are running on a multi-processor machine (might actually be slower).
It just makes the program capable of carrying on other processes while
still interacting with the user.

Christopher D. Hickman

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu