How to use the start thread in Yi language?

Updated on technology 2024-04-27
4 answers
  1. Anonymous users2024-02-08

    The starting thread can assign a subroutine to the first parameter, and the force-end thread can assign the handle returned by the starting thread to the first parameter.

    1. Create a new easy language program, add a button on the startup window, and then double-click this button to enter the ** area:

    2. After entering the ** area, right-click on the blank part of the ** area, and click the "New Sub-program" button in the menu to create a new sub-program:

    3. After creating a subroutine, use the Start Thread command, the first parameter is the name of the subroutine with "&", and then return the third parameter to a variable:

    4. If you need to end the thread, you can use the force end thread command, the parameter is the handle returned by the start thread, and then you can force the thread to close:

  2. Anonymous users2024-02-07

    The starting variable for each thread is 100 for sure, and here's what I modified

    Version 2 supports the library ethread

    Support for the library EAPI

    Assemblies Window Assembly 1

    Assembly variable i, integer.

    Subroutine button 1 is clicked.

    i = 99 'Here you have to subtract 1 from the starting number

    Start thread (& subroutine 1, ,start thread (& subroutine 1, ,start thread (& subroutine 1, ,subroutine subroutine 1

    Judgment cycle head (i 200).'If the loop has not been reached to the target number, the loop is executed.

    i = i + 1 'Be sure to increment i immediately so that when another thread accesses i, there will be no situation where two threads will detect one port at the same time.

    Output debug text (i).

    If (port detection (i, )

    Box 1Add text (to text (i) line breaks) otherwise. If it ends.

    Label 1Title to text (i).

    Judge the end of the cycle ().

  3. Anonymous users2024-02-06

    The startup thread can assign the subroutine to the first parameter, and the force-end thread can assign the handle of the startup thread's return to the circle to the first orange mask.

    1. Create a new easy language program, add a button on the startup window, and then double-click this button to enter the ** area:

    2. After entering the ** area, right-click on the blank part of the ** area, and click the "New Sub-program" button in the menu to create a new sub-program:

    3. After creating a subroutine, use the Start Thread command, the first parameter is "&" and stuff + the name of the subprogram, and then return the third parameter to a variable:

    4. If you need to end the thread, you can use the force end thread command, the parameter is the handle returned by the start thread, and then you can force the thread to close:

  4. Anonymous users2024-02-05

    Version. Support the Kuring shipment.

    ethread.

    Assembly. Window Source Assembly 1

    Assembly variables.

    Handle. Integer bai type. Subroutines du sequence.

    Startup windowShoot Wangjiazhi Create a raid to complete the launch window. Visual.

    False. Start the thread.

    Subroutine. 1, handle).

    Subroutine. Subroutine 1 infobox.

    Here's an example of "dao,0,

Related questions
2 answers2024-04-27

Yi Language is a self-developed Chinese programming language that is suitable for national conditions and is easy to learn and use for people of different levels and professions. Easy Language lowers the threshold for the majority of computer users to program, especially users who do not know English at all or have little understanding of English, can enter the door of Windows programming extremely quickly by using this language. Yi Language Chinese Programming Environment is a programming tool environment that supports programming based on Chinese characters and words, fully visualized, and cross-mainstream operating system platforms. Available in simplified and traditional Chinese, English, Japanese and other languages; Able to call to and from commonly used programming languages; It has interfaces and supporting tools that make full use of various resources such as API, COM, DLL, OCX components, various mainstream databases, and various utilities. >>>More

11 answers2024-04-27

When you first started creating a menu, didn't you just click on the title bar?

11 answers2024-04-27

srand(int) is used to set the seed, and then returns a random value each time rand(). >>>More

19 answers2024-04-27

Please first ** "vc6 mini linker" and copy the "vc98linker" folder to the root directory of easy language. Then find the file "Easy Language and the directory vc98linker and open it, run it and click Modify, you can use static compilation.

5 answers2024-04-27

Learn to ask in easy language.