What is VB s multithreading and who has information on this

Updated on technology 2024-02-08
2 answers
  1. Anonymous users2024-02-05

    Single-threaded assembly and element models.

    All parts created by Visual Basic use the unit model, regardless of whether the part is single-threaded or multi-threaded. A single-threaded assembly has only one cell, which contains all the objects provided by the assembly.

    This means that single-threaded DLLs created in Visual Basic can be safely used with multi-threaded clients. However, performance and security are a contradiction, and this security comes at the expense of performance. Calls from all client threads except the current client thread are waiting to be dispatched, as if they were out-of-process.

    See Designing thread-safe DLLs.

    Ownership of the thread.

    Multithreaded process internals do not have their own threads. As described in "Designing thread-safe DLLs," the threads that define each unit belong to the client.

    In contrast, a multithreaded out-of-process component may have a thread pool with a fixed number of threads, or set up a thread for each externally created object.

    Design multithreaded out-of-process parts.

    You can take advantage of unit mode progression to create multi-threaded process externals. Such widgets provide objects that can run on different execution threads.

    To assign objects to threads in out-of-process parts, Visual Basic provides three models. You can select one of the models by setting the No User Interface Execution box on the General tab in the Project Properties dialog box.

    The setting for the thread assignment model "no user interface execution".

    Single Execution Thread Select the Thread Pool option to specify the number of threads as one.

    Thread pool for circular assignment threads Select the Thread Pool option and specify the number of threads available.

    Each externally created object has its own thread Select the "Threads per object" option.

    A single thread of execution.

    When No UI Execution is selected, a single thread of execution is the default. Use this option to compile parts developed in earlier versions of Visual Basic without thinking about threads.

    If you use the No User Interface Execution option to recompile the part, the server will no longer be able to display the message box and will not be able to receive administrator intervention. However, such messages can be logged to the Windows NT event log (or a log file of your choice), see Event Logs for Multithreaded Parts.

    Looping thread pools.

    When a client requests an object, Visual Basic uses the program pool to create the desired object on the next thread. When a thread reaches the end of the thread pool, it starts from the beginning.

  2. Anonymous users2024-02-04

    Now it's possible to multi-thread.

Related questions
8 answers2024-02-08

Human beings, there are no words in the world, there are too many people who paint, so there are words, and it is impossible to verify who made them, and whoever needs them will make them.

11 answers2024-02-08

The author is Gu Gu Published on March 18, 2002 The rich are not honorable, and the poor are not ashamed. Modern people do not completely judge a person's value by material standards, and people's lifestyles are rich and colorful, not the rich are happy, the poor are very miserable, and the happiness of life has nothing to do with the rich and the poor. How poor is poor? >>>More

9 answers2024-02-08

One Piece is a very classic hot-blooded anime, do you know who Luffy's grandfather is?

6 answers2024-02-08

The NBA league is a game founded by the National Basketball Association of the United States, in 1896, the first basketball organization in the United States "National Basketball League (abbreviation) was established", but at that time the basketball rules were not perfect, the organization was not perfect, often a player can represent several teams in a season, after a few seasons, the organization existed in name only. On April 6, 1946, the "American Basketball Association (BAA)" was initiated by Walter A. Brown, the owner of Boston Garden in the United States, and Brown first proposed the high salary system and contract system that later became the two cornerstones of modern professional basketball. The contract system means that a player can only sign a contract with one club, and a player reserve system is set up in case the player leaves the team suddenly. >>>More

2 answers2024-02-08

Xu Yong, Li Yanhong.

At the end of 1999, Xu Yong and his friend Robin Li returned to China to found. Beg. >>>More