Jump to content

Search the Community

Showing results for tags 'multithread virtualprocess'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I know adding multithreading in autoit won't happen anytime soon and i am ok with that with experience we learn to use 2, 3 event more .exe but how about running multiple autoit into 1 process , AutoitVirtualProcessSharedMemory = a array maybe all virtualprocess have access,i think autoit dev know better than me what todo here , a array of mixed value could be great , since the user can define a Global enum and easely keep track of meaning of each index $VP_index(used to maybe to close that thread) = AutoitCreateVirtualProcess() : this function will start a new autoit thread inside the same process and execute another copy of our script , like if we run it for the first time, so no worry about not safe in multithreading @VirtualProcessCount will be == to your thread count Created @VirtualProcess == current running thread if @VirtualProcess = 1 then thread1() if @VirtualProcess = 2 then thread2() func thread1() while 1 ;mutex while AutoitVirtualProcessSharedMemory[$_DB_COMMAND_IN] <> "" wend AutoitVirtualProcessSharedMemory[$_DB_COMMAND_IN] = "my db command" If AutoitVirtualProcessSharedMemory[$_DB_COMMAND_OUT] = "for me" Then DoSomething() EndIf wend endfunc func thread2() if AutoitVirtualProcessSharedMemory[$_DB_COMMAND_IN] <> "" then Local $command = AutoitVirtualProcessSharedMemory[$_DB_COMMAND_IN] AutoitVirtualProcessSharedMemory[$_DB_COMMAND_IN] = "" ;delete as soon as possible to free my mutex Local $result = MySQL($command) ;mutex While AutoitVirtualProcessSharedMemory[$_DB_COMMAND_OUT] <> "" WEnd AutoitVirtualProcessSharedMemory[$_DB_COMMAND_OUT] = $result endif endfunc Func AnotherFunction() EndFunc i hope i am making sence
×
×
  • Create New...