Ignore:
Timestamp:
Aug 29, 2010, 2:22:40 PM (11 years ago)
Author:
kopal
Message:
  • created multi processor gears4net scheduler for execution engine
  • added setting for thread priority
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/WorkspaceManagerSettings.cs

    r1872 r1884  
    55using Cryptool.PluginBase;
    66using System.ComponentModel;
     7using System.Threading;
    78
    89namespace WorkspaceManager
     
    1516        public WorkspaceManagerSettings()
    1617        {
    17             this.Schedulers = "" + System.Environment.ProcessorCount * 2;
     18            this.Threads = "" + System.Environment.ProcessorCount;           
    1819        }
    1920
     
    6061        }
    6162
    62         private String schedulers = "0";
    63         [TaskPane("Schedulers", "The amount of parallel gears4net schedulers.", null, 1, false, DisplayLevel.Beginner, ControlType.TextBox)]
    64         public String Schedulers
     63        private String threads = "0";
     64        [TaskPane("Threads", "The amount of used threads for scheduling.", null, 1, false, DisplayLevel.Beginner, ControlType.TextBox)]
     65        public String Threads
    6566        {
    6667            get
    6768            {
    68                 return schedulers;
     69                return threads;
    6970            }
    7071            set
    7172            {
    72                 schedulers = value;
    73                 OnPropertyChanged("Schedulers");
     73                threads = value;
     74                OnPropertyChanged("Threads");
    7475            }
    75         }     
     76        }
     77
     78        private int threadPriority = 4;
     79        [TaskPane("ThreadPriority", "Should the event handling be synchronous?", null, 1, false, DisplayLevel.Beginner, ControlType.ComboBox, new String[] { "AboveNormal", "BelowNormal", "Highest", "Lowest", "Normal" })]
     80        public int ThreadPriority
     81        {
     82            get
     83            {
     84                return threadPriority;
     85            }
     86            set
     87            {
     88                threadPriority = value;
     89                OnPropertyChanged("ThreadPriority");
     90            }
     91        } 
    7692
    7793        private bool benchmarkPlugins = false;
Note: See TracChangeset for help on using the changeset viewer.