There are three properties you can adjust in the Inspector for a Worker. This creates a special Worker object in your project which provides properties and events for controlling how it operates. Worker OverviewĪdd a Worker to your projects using the Insert toolbar or menu. Build your project to allow your Workers to run on multiple CPU cores. This means that when debugging everything still runs on a single CPU core. When run in Debug mode, Workers use Threads to simulate separate Console apps to make debugging easier. Note: For now, Worker can be used with Desktop projects, but we plan to make it available for Web projects in the future. Since these run as Console apps, the OS treats them as separate processes and spreads them out amongst available CPU cores. One or more of these console apps are started based on your Worker settings. A Worker provides a way for you to have code that runs on multiple CPU cores.Ī Worker achieves this by running its code in a Console app. One of the many new features included in 2020 Release 2 is the Worker class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |