Assignment 3 Threads. Scientific Store A container contains 3 different objects: Laboratory: – Name of Head of Laboratory – Number of scientists in laboratory.

Slides:



Advertisements
Similar presentations
Managing your Loan Star Libraries Grant Part 3 Wendy Clark Jennifer Justus Texas State Library and Archives Commission.
Advertisements

Agile Software Distribution
CATHERINE AND ANNIE Python: Part 3. Intro to Loops Do you remember in Alice when you could use a loop to make a character perform an action multiple times?
Fox Scientific, Inc. ONLINE ORDERING 101. Welcome to our website On our main page you can find current promotions, the vendors we offer, technical references.
 In today’s new age technology, everything evolves at the speed of light. Now technology comes out almost on a daily basis and there for makes it hard.
What is a Data Flow Diagram? Why are they used? How to draw them.
Programming Types of Testing.
+ Yearbook Class Introduction Rules and Syllabus Give each student their binder which includes: Syllabus Turn in signature sheet Rubric Guide.
Information for students. August 2007 Welcome to the S 3 P system. Use your normal login for University systems – and the password that you were sent by.
Aim: How to test a hypothesis and design an experiment Do Now: 1) What do you need to know in order to test your hypothesis? 2)Take out your homework.
LET’S INVESTIGATE: The Scientific Method
Software Development. Chapter 3 – Your first Windows 8 app.
The Basics of Hiring Student Employees The basic steps for hiring a student employee are as follows: Step 1 Determine your department’s needs and budget.
SKYWARD A Quick Refresher Course
University of Palestine software engineering department Testing of Software Systems Fundamentals of testing instructor: Tasneem Darwish.
1 Chapter 4. To familiarize you with methods used to 1. Access input and output files 2. Read data from an input file 3. Perform simple move operations.
Career Services Center Employer Training. This is the main login page. The link can be found at Employers.
ICT in Organisations. ICT used in Sales Customer Databases Computerised order systems Analysis of sales patterns and trends.
Welcome to BLT Online NQT Induction. Points We Will Cover: What is BLT Online NQT Service? What are the advantages of using it? User roles on the site.
eOrders inventory ordering software! Introduction Use easy functions, letting you order products that you need automatically. Use easy functions, letting.
Problem Determination Your mind is your most important tool!
Roll out a charged up Wireless Laptop with a Barcode Scanner. Installed with AnzioWin and with active Wireless Network Connection.
The Scientific Method. The Scientific Method The Scientific Method is a problem solving-strategy. *It is just a series of steps that can be used to solve.
NextGen Month End & Fiscal Year End Local Government Corporation.
The DSpace Course Module – Item submission workflows.
May 2, 2013 An introduction to DSpace. Module 9 – Item submission workflows By the end of this module, you will … Understand the purpose of workflows.
System Analysis (Part 3) System Control and Review System Maintenance.
Microscope Control Configuration This section of the QED manual will describe how to configure you Configure and Control your automated microscope. Mac.
Making Decisions uCode: October Review What are the differences between: o BlueJ o Java Computer objects represent some thing or idea in the real.
Step 5: Complete Your Project. Setting the scene Suppose you have been running a project to write a small piece of computer software for a business. The.
Clouds with Henry’s Help Miss Eldridge’s Interactive Lesson Let’s Begin!!!!!!!!…………
SchedulingProducingControllingSchedulingProducingControlling.
Professor Sharon Brown.  First rough draft  Set up the “pieces”: Coversheet Executive Summary Body References.
IGCSE ICT Stock Control.
More DFDs Class 12.
The Hashemite University Computer Engineering Department
Project18 Communication Design + Parallelization Camilo A Silva BIOinformatics Summer 2008.
1 Work Orders. 2 Generating a Work Order There are two methods to generating a Work Order in the WYNNE STSTEM. First method: Option 11 – 12 – 13 * Open.
CSC CSC 143 Threads. CSC Introducing Threads  A thread is a flow of control within a program  A piece of code that runs on its own. The.
Purchase Orders Notes:.
COPA Post-Rollover Setting the Year End Dates and Enrolling Your Children
Vex Robotics program three: using motors and sensors together.
1 Looping Chapter 6 2 Getting Looped in C++ Using flags to control a while statement Trapping for valid input Ending a loop with End Of File condition.
Scenario use cases Szymon Mueller PSNC. Agenda 1.General description of experiment use case. 2.Detailed description of use cases: 1.Preparation for observation.
Your Electricity Expenses During Winter and Summer Cooling fans are an essential component of any electronic system. The reason for this is that electronics.
Import existing part with drawing
The Scientific Method ♫ A Way to Solve a Problem ♫ Created by Mrs. Vredenburg July, 2001.
Fox Scientific, Inc. ONLINE ORDERING 101. Welcome to our website On our main page you can find current promotions, the vendors we offer, technical references.
Crisis Commander Mobile App
The Scientific Method.
Introduction To Repetition The for loop
Sociological Research Methods
Ariba Contracts: Initiate eSignature
The Scientific Method A Way to Solve a Problem
Standard Algorithms Higher Computing.
How to Fix Microsoft Office Error 2932 at Support Number
5-topic Template Click here to make your own copy of this template
Resources BTEC National.
Online Performance Evaluation Tool
Implementing Threads in User Space
The Scientific Method ♫A Way to Solve a Problem♫
COT 5611 Operating Systems Design Principles Spring 2012
Capacity Planning.
FastTrack Go to W2P using My Humble – RapidIdentity.
LET’S INVESTIGATE: The Scientific Method
How do scientists solve problems?
Compare and Order Whole Numbers and Decimals
Scientific Method Measurement Graphing
The Scientific Method A Way to Solve a Problem
The Scientific Method A Way to Solve a Problem
Presentation transcript:

Assignment 3 Threads

Scientific Store A container contains 3 different objects: Laboratory: – Name of Head of Laboratory – Number of scientists in laboratory Number of scientists = number of threads – Specialization – cost Equipment: – name – Items in package – cost Scientist: – name – Specialization – cost

Head Of Laboratory Includes everything that a laboratory includes – Number of scientists – Specialization Includes an executor with number of threads equal to number of scientists

Experiment Each experiment has specialization In order to run the experiment: – Make sure all pre-requirement experiments are already complete. – Find a laboratory with same specialization, if not found the buy a laboratory, and create a HeadOfLaboratory for it – Check if you have enough equipment in repository, if not buy equipment, and update the Repository Send experiment to the HeadOfLaboratory, for execution.

Execution of Experiment Each experiment has runtime value in hours. Daily cycle: runtime>=8 – Acquire equipment from Repository – Sleep 8 hours (this is our “work” day) – Release equipment to Repository. – Runtime = runtime – 8 If runtime>0, sleep 16 hours and repeat cycle. If 0<runtime<8: – Acquire equipment from Repository – Sleep runtime hours – Release equipment to Repository. – Runtime = 0. Execution is complete. Update state of experiment and notify ChiefScientist

ChiefScientist This object will act as our Observer, and will hold ChiefScientistAssistant Once an experiment is done, the ChiefScientist is notified of this, once notified the ChiefScientist will do the following: – Update all experiments that have the completed experiment as pre-requirement that is complete – Ask ChiefScientistAssistant to do another scan for experiments that are able to run.

ChiefScientistAssistant One of a kind! Will run as a thread when ChiefScientist asks him. Scans for experiments, and for each experiment: – Purchases equipment [if needed] – Purchases scientists [if needed] – Purchases laboratories [if needed] – Sends it to the correct HeadOfLaboratory Will shutdown everything once all experiments are complete.

Statistics Budget – how much money you have left after the whole process. MoneySpent – how much you spent. MoneyGained – how much money you gained. Scientists Purchased – scientists purchased, and their information Equipment Purchased – equipment purchased, and their information Laboratories Purchased – laboratories purchased and their information Completed Experiments – experiments complete, and their information

Input Files [PDF] Section 5

Questions?