Re: forget coorporative multitasking in .NET ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nick Malik [Microsoft] (nickmalik_at_hotmail.nospam.com)
Date: 01/03/05


Date: Mon, 03 Jan 2005 15:30:06 GMT

Hi Frans,

I do have one small disagreement with your otherwise excellent description.

> We all do have synchronous multitasking code today: simply write a
> routine and call from that routine your other routines. That's
> co-operative multitasking.

I disagree. The way to get cooperative multitasking today is to put code
into a timer event. As far as the programmer is concerned, he or she didn't
make any "threading" calls. Writing a routine that calls other routines is
not multitasking at all. The original routine places items on the stack and
the subroutine is called. There is only one thread.

The entire rest of your message was excellent, BTW.

-- 
--- Nick Malik [Microsoft]
    MCSD, CFPS, Certified Scrummaster
    http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
   I do not answer questions on behalf of my employer.  I'm just a
programmer helping programmers.
--


Relevant Pages

  • Re: On Error Resume Next
    ... > I've gone from being a total newbie, to an OK beginner programmer but ... If you want error handling, it must go in each routine where you want it. ... doesn't drop into the error handler. ...
    (microsoft.public.word.vba.beginners)
  • Re: Which do you prefer?
    ... 'routine X seems like the logical place to put this instead ... ' (insert dire consequences). ... Robin S. ... missing then you're a sloppy programmer. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: HC08 monitor mode, security problem
    ... > If the programmer treats them as the same device, then the routine that is ... > loaded into the AZ60's RAM to do the mass erase must detect if it's ... > if your programmer will let you do that. ...
    (comp.arch.embedded)
  • Re: C (I think) to Perl Conversion
    ... Uri Guttman wrote: ... > BW> task I need done, but it's done in another programing language (of ... (is begin parameter sending to another routine or beginning of math ... like programmer protection. ...
    (comp.lang.perl.misc)
  • Re: Limiting an entry to valid dollar values?
    ... I posted a link to a different version of my routine, ... the programmer to specify how many digits there can be before and after ... link to the general routines might be something Charles could use ...
    (microsoft.public.vb.general.discussion)