Beispiel #1
0
def runCompiler(tree):
    from executer import execute

    get_classification(tree)
    print "Start executing..."

    execute(primary_code, input_parameters)
Beispiel #2
0
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
Beispiel #3
0
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
Beispiel #4
0
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
Beispiel #5
0
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.')
Beispiel #6
0
def producer():
	inp = request.args['input']
	out = executer.execute('process_sync/producer_consumer', inp)
	return out
Beispiel #7
0
def dining():
	inp = request.args['input']
	out = executer.execute('process_sync/dining', inp)
	return out
Beispiel #8
0
def pafe_rtos():
    inp = request.args['input']
    out = executer.execute('RTOS/rate_monotonic', inp)
    return out
Beispiel #9
0
def reader():
    inp = request.args['input']
    out = executer.execute('process_sync/readerwriter', inp)
    return out