示例#1
0
 def __init__(self, opts = {}):
   opts['name'] = 'enough_space_' + str(kernel_data.RID)
   Resource.__init__(self, opts)
示例#2
0
文件: terminate.py 项目: Engma90/labs
 def __init__(self, opts = {}):
   opts['name'] = 'terminate_' + str(kernel_data.RID)
   Resource.__init__(self, opts)
示例#3
0
 def __init__(self, opts={}):
     opts['name'] = 'user_memory_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
示例#4
0
 def __init__(self, opts = {}):
     opts['name'] = 'line_to_print_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.data_to_print = opts['data'] 
示例#5
0
 def __init__(self, opts = {}):
     opts['name'] = 'input_device_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
示例#6
0
 def __init__(self, opts = {}):
     opts['name'] = 'interrupt_' + str(kernel_data.RID)
     self.process = opts['process']
     Resource.__init__(self, opts)
     self.message = opts['message']
示例#7
0
文件: channel1.py 项目: Tumas/labs
 def __init__(self, opts={}):
     opts["name"] = "channel1_" + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
示例#8
0
 def __init__(self, opts = {}):
     opts['name'] = 'task_at_hd_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
     self.write_info = opts['write_info']
示例#9
0
 def __init__(self, opts={}):
     opts['name'] = 'terminate_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
示例#10
0
 def __init__(self, opts={}):
     opts['name'] = 'line_to_print_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.data_to_print = opts['data']
示例#11
0
 def __init__(self, opts = {}):
   opts['name'] = 'output_device_' + str(kernel_data.RID)
   Resource.__init__(self, opts)
示例#12
0
 def __init__(self, opts={}):
     opts['name'] = 'tasks_found_' + '_' + str(opts['count']) + str(
         kernel_data.RID)
     Resource.__init__(self, opts)
     self.count = opts['count']
示例#13
0
 def __init__(self, opts = {}):
     opts['name'] = 'task_loaded_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
     self.addresses = opts['addresses']
示例#14
0
 def __init__(self, opts = {}):
   opts['name'] = 'user_memory_' + str(kernel_data.RID)
   Resource.__init__(self, opts)
示例#15
0
 def __init__(self, opts = {}):
   opts['name'] = 'task_completed_' + str(kernel_data.RID) 
   Resource.__init__(self, opts)
示例#16
0
 def __init__(self, opts = {}):
     opts['name'] = 'task_at_input_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
     self.file_path = opts['file_path']
示例#17
0
 def __init__(self, opts = {}):
     opts['name'] = 'task_data_at_sm_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
示例#18
0
 def __init__(self, opts={}):
     opts['name'] = 'task_loaded_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
     self.addresses = opts['addresses']
示例#19
0
 def __init__(self, opts = {}):
     opts['name'] = 'kernel_memory_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
示例#20
0
 def __init__(self, opts={}):
     opts['name'] = 'task_at_input_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
     self.file_path = opts['file_path']
示例#21
0
 def __init__(self, opts={}):
     opts['name'] = 'task_data_at_sm_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
示例#22
0
 def __init__(self, opts={}):
     opts['name'] = 'interrupt_' + str(kernel_data.RID)
     self.process = opts['process']
     Resource.__init__(self, opts)
     self.message = opts['message']
示例#23
0
 def __init__(self, opts={}):
     opts['name'] = 'output_device_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
示例#24
0
文件: tasks_found.py 项目: Tumas/labs
 def __init__(self, opts={}):
     opts["name"] = "tasks_found_" + "_" + str(opts["count"]) + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.count = opts["count"]
示例#25
0
 def __init__(self, opts={}):
     opts['name'] = 'task_at_hd_' + str(kernel_data.RID)
     Resource.__init__(self, opts)
     self.sem = BinarySemaphore()
     self.write_info = opts['write_info']
示例#26
0
 def __init__(self, opts={}):
     opts['name'] = 'task_completed_' + str(kernel_data.RID)
     Resource.__init__(self, opts)