def runCompiler(tree): from executer import execute get_classification(tree) print "Start executing..." execute(primary_code, input_parameters)
def pafe_replacement(): scheduling = ['fifo', 'lru', 'opt'] inp = request.args['input'] out = "" for algo in scheduling: out += executer.execute('page_replacement/' + algo, inp) return out
def process_schedule(): scheduling = ['fcfs', 'rr', 'sjf', 'non_preemptive', 'srtf', 'preemptive'] inp = request.args['input'] out = "" for algo in scheduling: out += executer.execute('process_scheduling/'+algo, inp) return out
def disk_schedule(): scheduling = ['fcfs', 'sstf', 'scan', 'c_scan', 'look', 'c_look'] inp = request.args['input'] print inp out = "" for algo in scheduling: out += executer.execute('disk_scheduling/'+algo, inp) return out
def main(): """ Function referred in setup.py for the entrypoint """ # query input (query, results_number) = inputnow() # obtaining top results for articles' ABSTRACTS database = "pubmed" execute(query, database, results_number) # obtaining top results for articles' FULL TEXTS database = "pmc" execute(query, database, results_number) print( "If you are not satisfied with the search results, try shorter/longer/equivalent queries with/without a filter." ) print('Thank you.')
def producer(): inp = request.args['input'] out = executer.execute('process_sync/producer_consumer', inp) return out
def dining(): inp = request.args['input'] out = executer.execute('process_sync/dining', inp) return out
def pafe_rtos(): inp = request.args['input'] out = executer.execute('RTOS/rate_monotonic', inp) return out
def reader(): inp = request.args['input'] out = executer.execute('process_sync/readerwriter', inp) return out