Multithreading in VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: Multithreading in VB

  1. #1
    Imran Jami Guest

    Multithreading in VB


    Dear alls
    I think the support of multithreading in VB is very small
    What is your opinions.
    I could not find any material on this topic in any book.
    Although VB Unleashed does provide some material but it is not much for
    a developer.


  2. #2
    Michael \(michka\) Kaplan Guest

    Re: Multithreading in VB

    Matt Curland's book provides quite a bit of developer-oriented info for VB6
    (and VB5, fwiw).

    VB7 (which is what this group is about) will provide it natively.

    --
    MichKa

    random junk of dubious value at the
    multilingual http://www.trigeminal.com/ and
    a new book on internationalization in VB at
    http://www.i18nWithVB.com/

    "Imran Jami" <imranjami2000@yahoo.com> wrote in message
    news:39a75d36$1@news.devx.com...
    >
    > Dear alls
    > I think the support of multithreading in VB is very small
    > What is your opinions.
    > I could not find any material on this topic in any book.
    > Although VB Unleashed does provide some material but it is not much for
    > a developer.
    >




  3. #3
    Douglas Guest

    Re: Multithreading in VB

    There is a sample at www.vbaccelerator.com

    hth,
    Doug


    "Imran Jami" <imranjami2000@yahoo.com> wrote in message
    news:39a75d36$1@news.devx.com...
    >
    > Dear alls
    > I think the support of multithreading in VB is very small
    > What is your opinions.
    > I could not find any material on this topic in any book.
    > Although VB Unleashed does provide some material but it is not much for
    > a developer.
    >




  4. #4
    Ian Drake Guest

    Re: Multithreading in VB


    I think your looking at it throught the wrong perspective. Yes, for desktop
    apps multithreading is really nothing new, you could always use API calls
    if needed. BUT, up til now VB could only create STA's(Single Threaded Appartments)
    for COM objects. When VB7 is released that it will support for NTAs(Neutral
    Threaded Appartments). NTA's are much more effecient at cross thread marshalling
    and are also easier to code that MTAs(Multi Threaded Appartments) supported
    in VC++ 6.0. What does this mean? Much more efficient and scalable objects
    for use with COM+! So yes if you are a desktop programmer then who cares,
    but if you are working with MTS and/or web applications then it a big deal.

    Ian Drake

    "Imran Jami" <imranjami2000@yahoo.com> wrote:
    >
    >Dear alls
    >I think the support of multithreading in VB is very small
    >What is your opinions.
    >I could not find any material on this topic in any book.
    >Although VB Unleashed does provide some material but it is not much for


    >a developer.
    >



  5. #5
    Michael \(michka\) Kaplan Guest

    Re: Multithreading in VB

    Ian,

    If you ever have experienced the cost of poorly behaving multithreaded
    components, you would understand that this "ideal" situation is often not
    what happens in the real world.

    --
    MichKa

    random junk of dubious value at the
    multilingual http://www.trigeminal.com/ and
    a new book on internationalization in VB at
    http://www.i18nWithVB.com/

    "Ian Drake" <ian.drake1@home.com> wrote in message
    news:39aada8c$1@news.devx.com...
    >
    > I think your looking at it throught the wrong perspective. Yes, for

    desktop
    > apps multithreading is really nothing new, you could always use API calls
    > if needed. BUT, up til now VB could only create STA's(Single Threaded

    Appartments)
    > for COM objects. When VB7 is released that it will support for

    NTAs(Neutral
    > Threaded Appartments). NTA's are much more effecient at cross thread

    marshalling
    > and are also easier to code that MTAs(Multi Threaded Appartments)

    supported
    > in VC++ 6.0. What does this mean? Much more efficient and scalable

    objects
    > for use with COM+! So yes if you are a desktop programmer then who cares,
    > but if you are working with MTS and/or web applications then it a big

    deal.
    >
    > Ian Drake
    >
    > "Imran Jami" <imranjami2000@yahoo.com> wrote:
    > >
    > >Dear alls
    > >I think the support of multithreading in VB is very small
    > >What is your opinions.
    > >I could not find any material on this topic in any book.
    > >Although VB Unleashed does provide some material but it is not much for

    >
    > >a developer.
    > >

    >




  6. #6
    Ian Drake Guest

    Re: Multithreading in VB


    Mike,
    Your right! You must know your limits. Anyone developing components with
    a NTA should take into account how cross thread marshalling is achieved with
    that model and construct their components with that in mind.

    Ian Drake


    "Michael \(michka\) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com> wrote:
    >Ian,
    >
    >If you ever have experienced the cost of poorly behaving multithreaded
    >components, you would understand that this "ideal" situation is often not
    >what happens in the real world.
    >
    >--
    >MichKa
    >
    >random junk of dubious value at the
    >multilingual http://www.trigeminal.com/ and
    >a new book on internationalization in VB at
    >http://www.i18nWithVB.com/
    >
    >"Ian Drake" <ian.drake1@home.com> wrote in message
    >news:39aada8c$1@news.devx.com...
    >>
    >> I think your looking at it throught the wrong perspective. Yes, for

    >desktop
    >> apps multithreading is really nothing new, you could always use API calls
    >> if needed. BUT, up til now VB could only create STA's(Single Threaded

    >Appartments)
    >> for COM objects. When VB7 is released that it will support for

    >NTAs(Neutral
    >> Threaded Appartments). NTA's are much more effecient at cross thread

    >marshalling
    >> and are also easier to code that MTAs(Multi Threaded Appartments)

    >supported
    >> in VC++ 6.0. What does this mean? Much more efficient and scalable

    >objects
    >> for use with COM+! So yes if you are a desktop programmer then who cares,
    >> but if you are working with MTS and/or web applications then it a big

    >deal.
    >>
    >> Ian Drake
    >>
    >> "Imran Jami" <imranjami2000@yahoo.com> wrote:
    >> >
    >> >Dear alls
    >> >I think the support of multithreading in VB is very small
    >> >What is your opinions.
    >> >I could not find any material on this topic in any book.
    >> >Although VB Unleashed does provide some material but it is not much for

    >>
    >> >a developer.
    >> >

    >>

    >
    >



  7. #7
    Michael \(michka\) Kaplan Guest

    Re: Multithreading in VB

    And do you truly believe that as many as 5% of the people who use this
    feature in VB will have this kind of knowledge under their belt BEFORE they
    try to jump in and implement it?

    --
    MichKa

    random junk of dubious value at the
    multilingual http://www.trigeminal.com/ and
    a new book on internationalization in VB at
    http://www.i18nWithVB.com/

    "Ian Drake" <ian.drake1@home.com> wrote in message
    news:39ab2a5c$1@news.devx.com...
    >
    > Mike,
    > Your right! You must know your limits. Anyone developing components with
    > a NTA should take into account how cross thread marshalling is achieved

    with
    > that model and construct their components with that in mind.
    >
    > Ian Drake
    >
    >
    > "Michael \(michka\) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>

    wrote:
    > >Ian,
    > >
    > >If you ever have experienced the cost of poorly behaving multithreaded
    > >components, you would understand that this "ideal" situation is often not
    > >what happens in the real world.
    > >
    > >--
    > >MichKa
    > >
    > >random junk of dubious value at the
    > >multilingual http://www.trigeminal.com/ and
    > >a new book on internationalization in VB at
    > >http://www.i18nWithVB.com/
    > >
    > >"Ian Drake" <ian.drake1@home.com> wrote in message
    > >news:39aada8c$1@news.devx.com...
    > >>
    > >> I think your looking at it throught the wrong perspective. Yes, for

    > >desktop
    > >> apps multithreading is really nothing new, you could always use API

    calls
    > >> if needed. BUT, up til now VB could only create STA's(Single Threaded

    > >Appartments)
    > >> for COM objects. When VB7 is released that it will support for

    > >NTAs(Neutral
    > >> Threaded Appartments). NTA's are much more effecient at cross thread

    > >marshalling
    > >> and are also easier to code that MTAs(Multi Threaded Appartments)

    > >supported
    > >> in VC++ 6.0. What does this mean? Much more efficient and scalable

    > >objects
    > >> for use with COM+! So yes if you are a desktop programmer then who

    cares,
    > >> but if you are working with MTS and/or web applications then it a big

    > >deal.
    > >>
    > >> Ian Drake
    > >>
    > >> "Imran Jami" <imranjami2000@yahoo.com> wrote:
    > >> >
    > >> >Dear alls
    > >> >I think the support of multithreading in VB is very small
    > >> >What is your opinions.
    > >> >I could not find any material on this topic in any book.
    > >> >Although VB Unleashed does provide some material but it is not much

    for
    > >>
    > >> >a developer.
    > >> >
    > >>

    > >
    > >

    >




  8. #8
    Jay Glynn Guest

    Re: Multithreading in VB

    They will after the apps and components they build crash and burn enough
    times. That's how I learned. Some lessons are just harder to learn then
    others. I think this is one of those areas that you can read all you want,
    but until you watch all of your memory go splat with out of control
    threading, you just won't really understand.

    "Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com> wrote
    in message news:39ab2f3e@news.devx.com...
    > And do you truly believe that as many as 5% of the people who use this
    > feature in VB will have this kind of knowledge under their belt BEFORE

    they
    > try to jump in and implement it?
    >
    > --
    > MichKa
    >
    > random junk of dubious value at the
    > multilingual http://www.trigeminal.com/ and
    > a new book on internationalization in VB at
    > http://www.i18nWithVB.com/
    >
    > "Ian Drake" <ian.drake1@home.com> wrote in message
    > news:39ab2a5c$1@news.devx.com...
    > >
    > > Mike,
    > > Your right! You must know your limits. Anyone developing components

    with
    > > a NTA should take into account how cross thread marshalling is achieved

    > with
    > > that model and construct their components with that in mind.
    > >
    > > Ian Drake
    > >
    > >
    > > "Michael \(michka\) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>

    > wrote:
    > > >Ian,
    > > >
    > > >If you ever have experienced the cost of poorly behaving multithreaded
    > > >components, you would understand that this "ideal" situation is often

    not
    > > >what happens in the real world.
    > > >
    > > >--
    > > >MichKa
    > > >
    > > >random junk of dubious value at the
    > > >multilingual http://www.trigeminal.com/ and
    > > >a new book on internationalization in VB at
    > > >http://www.i18nWithVB.com/
    > > >
    > > >"Ian Drake" <ian.drake1@home.com> wrote in message
    > > >news:39aada8c$1@news.devx.com...
    > > >>
    > > >> I think your looking at it throught the wrong perspective. Yes, for
    > > >desktop
    > > >> apps multithreading is really nothing new, you could always use API

    > calls
    > > >> if needed. BUT, up til now VB could only create STA's(Single

    Threaded
    > > >Appartments)
    > > >> for COM objects. When VB7 is released that it will support for
    > > >NTAs(Neutral
    > > >> Threaded Appartments). NTA's are much more effecient at cross thread
    > > >marshalling
    > > >> and are also easier to code that MTAs(Multi Threaded Appartments)
    > > >supported
    > > >> in VC++ 6.0. What does this mean? Much more efficient and scalable
    > > >objects
    > > >> for use with COM+! So yes if you are a desktop programmer then who

    > cares,
    > > >> but if you are working with MTS and/or web applications then it a big
    > > >deal.
    > > >>
    > > >> Ian Drake
    > > >>
    > > >> "Imran Jami" <imranjami2000@yahoo.com> wrote:
    > > >> >
    > > >> >Dear alls
    > > >> >I think the support of multithreading in VB is very small
    > > >> >What is your opinions.
    > > >> >I could not find any material on this topic in any book.
    > > >> >Although VB Unleashed does provide some material but it is not much

    > for
    > > >>
    > > >> >a developer.
    > > >> >
    > > >>
    > > >
    > > >

    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center