SlideShare a Scribd company logo
1 of 34
Introduction
Computing categories
Frameworks
Task Based application models
Aneka Task-Based programming
◦ Task programming model
◦ Task Programming examples
Summary
References
Task computing:
◦ What is Task?
a distinct unit of code, or a program, that can be separated
and executed in a remote runtime environment
◦ Difference between Multithreaded Computing and Task
computing:
Multithreaded programming:
mainly concerned with providing a support for parallelism
within a single machine.
Task computing:
provides distribution by harnessing the computer power of
several computing nodes
◦ Now clouds have emerged as an attractive solution.
According to the specific nature of the
problem, task computing is categorized into:
◦ High-performance computing (HPC)
◦ High-throughput computing (HTC)
◦ Many-task computing (MTC).
use of distributed computing facilities for
solving problems that need large computing
power.
Historically, supercomputers and clusters are
specifically designed to support HPC
applications.
use of distributed computing facilities for
applications requiring large computing power
over a long period of time.
HTC systems need to be robust and to
reliably operate over a long time scale.
Traditionally, computing grids composed of
heterogeneous resources (clusters,
workstations, and volunteer desktop
machines) have been used to support HTC.
aims to bridge the gap between HPC and
HTC.
MTC is similar to HTC, but it concentrates on
the use of many computing resources over a
short period of time to accomplish many
computational tasks.
In brief, MTC denotes high-performance
computations comprising multiple distinct
activities coupled via file system operations.
Some popular software systems are
◦ Condor
◦ Globus Toolkit
◦ Sun Grid Engine (SGE)
◦ BOINC
◦ Nimrod/G
◦ Aneka.
Condor
◦ most widely used and long-lived middleware for
managing clusters, idle workstations, and a
collection of clusters.
Sun Grid Engine (SGE)
◦ Tool for managing heterogeneous resources and
constitutes middleware for grid computing.
The Globus Toolkit
◦ collection of technologies that enable grid
computing.
◦ provides a comprehensive set of tools for sharing
computing power, databases, and other services.
Nimrod/G
◦ tool for automated modeling and execution of
parameter sweep applications over global
computational grids.
Berkeley Open Infrastructure for Network
Computing (BOINC)
◦ framework for volunteer and grid computing.
◦ allows us to turn desktop machines into volunteer
computing nodes that are leveraged to run jobs
when such machines become inactive.
Embarrassingly parallel applications
Parameter sweep applications
MPI applications
Workflow applications with task dependencies
Constitute a collection of tasks that are
independent from each other and that can be
executed in any order.
The tasks might be of the same type or of
different types, and they do not need to
communicate among themselves.
Supporting frameworks are Globus Toolkit,
BOINC, and Aneka.
Parameter sweep applications are a specific
class of embarrassingly parallel applications
for which the tasks are identical in their
nature and differ only by the specific
parameters used to execute them.
Any distributed computing framework that
provides support for embarrassingly parallel
applica- tions can also support the execution
of parameter sweep applications, since the
tasks composing the application can be
executed independently of each other.
Message Passing Interface (MPI) is a
specification for developing parallel programs
that communi- cate by exchanging messages.
Compared to earlier models, MPI introduces
the constraint of com- munication that
involves MPI tasks that need to run at the
same time.
Task Programming Model
Figure:- Task Programming Model Scenario
Developing Application with
Task Model
Steps:
1. Define Classes With Itask Interface
2. Create a properly Configured AnekaApplication instance
3. Create ITask instances and wrap them into AnekaTask instances
4. Execute the application and wait for its completion
ITask Interface
Namespace Aneka.Tasks
{
//Codes
public interface ITask
{
//Codes
public void Execute();
}
}
ITask Interface Implementaion
Using System;
Using Aneka.Tasks;
namespace GaussSample
{
[Serializable]
public class GaussTask:ITask
{
private double x;
public double X{ get {return this.x; } set {this.x=value;} }
private double y;
public double Y{ get {return this.y; } set {this.y=value;} }
public void Execute()
{
this.y=Math.Exp(-this.x*this.x);
}
}
}
Wrapping an ITask into an Aneka
Task Interface
GaussTask gauss=new GaussTask();
AnekaTask task=new AnekaTask(gauss);
task.AddFile("input.txt", FileDataType.Input, FileAttributes.Local);
task.AddFile("result.txt", FileDataType.Output, FileAttributes.Local);
Controlling Task Execution
Computation Logic : Task Classes, AnekaTask
Coordination logic : AnekaApplication Class
AnekaApplication Class Provides following operations:
1. Static and Dynamic task submission
2. Application state and task state monitoring
3. Event based notification of tasks completion or failure.
Task Submission
Static Submission
◦ Creation of all tasks to be executed in one one loop and
submission as single bag
Dynamic Submission
◦ Submission as a result of event-based notification mechanism
Static Submission
Configuration conf=new Configuration.GetConfiguration("conf.xml");
conf.SingleSubmission=true;
AnekaApplication<AnekaTask, TaskManager> app=new AnekaApplicatoin<Task, TaskManager>(conf);
for(int i=0;i<400;i++)
{
GaussTask gauss=new GaussTask();
gauss.X=i;
AnekaTask task=new AnekaTask(gauss);
app.AddWorkUnit(task);
}
app.SubmitExecute();
Dynamic Submission
Events:
WorkUnitFailed
WorkUnitCompleted
File Management
Files consists of
◦ Input Data
◦ Result of Computation
◦ Executable codes or library dependencies
WorkUnit and ApplicationBase Classes for file management
Using FileData Class, the user specifies the file dependencies of tasks
and application.
Task Libraries
Ready to use tasks
1. File Copy
2. Substitute Operation
3. File Deletion
4. Timed Delay
7. Task Composition
8. Legacy Application Execution
Web Services Integration
Integration with other technologies and applications by means of web
services.
Operations supported through web service:
1. Local file copy on the remote node
2. File deletion
3. Parameter substitution
3. Legacy Application execution through the common shell services
Aneka a Platform for Enterprise Grid/Cloud Computing 29
Anatomy of a Cloud
IAASData Centers
Clusters
Storage
Other Grids/Clouds
Virtualization
VM Management & Deployment
Amazon S3, EC2
OpenNebula, Eucalyptus
Mosso
SAAS
Web 2.0 Interface
Programming API
Scripting & Programming
Languages
PAAS
Google AppEngine
Microsoft Azure
Manjrasoft Aneka
Google Apps (Gmail, Docs,…)
Salesforce.com
QoSMetering
SLANegotiationAdmissionControl
PricingandBilling
Accounting
Public Cloud
Private Cloud
Aneka a Platform for Enterprise Grid/Cloud Computing 30
Aneka & Clouds
Infrastructure as a Service
Platform as a Service
Software as a Service
Aneka fits into the cloud architecture at the platform layer. This means that it provides a programming
based interface for developing distributed application and a virtual execution environment in which
the applications developed according to the published APIs can run.
Public Cloud
Private Cloud
Aneka
Aneka Architecture
Aneka a Platform for Enterprise Grid/Cloud Computing 31
System Overview
Executor
Scheduler
Executor
Executor Executor
Manager
work units
internet
internet
Aneka enterprise Cloud
Manager
work units
Manager(s)
Client Applications
Workers
Aneka
Container
Further on Aneka
Aneka supports development of parameter sweep applications.
Aneka can be used to manage workflows through plug ins.
Summary
 Task based programming is most intuitive approach for distributing the
computation of an application over set of nodes
Task Model Comprises set of services(directory, scheduling, execution
and storage)
References
1. Buyya, Selvi, Vecchiola. Mastering Cloud Computing. 1st. New
Delhi: Mc Graw Hill, 2013.

More Related Content

What's hot

Market oriented Cloud Computing
Market oriented Cloud ComputingMarket oriented Cloud Computing
Market oriented Cloud ComputingJithin Parakka
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system modelHarshad Umredkar
 
CS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question BankCS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question Bankpkaviya
 
System models for distributed and cloud computing
System models for distributed and cloud computingSystem models for distributed and cloud computing
System models for distributed and cloud computingpurplesea
 
Cloud architecture
Cloud architectureCloud architecture
Cloud architectureAdeel Javaid
 
System models in distributed system
System models in distributed systemSystem models in distributed system
System models in distributed systemishapadhy
 
Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...
Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...
Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...Majid Hajibaba
 
Levels of Virtualization.docx
Levels of Virtualization.docxLevels of Virtualization.docx
Levels of Virtualization.docxkumari36
 
VTU 6th Sem Elective CSE - Module 3 cloud computing
VTU 6th Sem Elective CSE - Module 3 cloud computingVTU 6th Sem Elective CSE - Module 3 cloud computing
VTU 6th Sem Elective CSE - Module 3 cloud computingSachin Gowda
 
Distributed computing
Distributed computingDistributed computing
Distributed computingshivli0769
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualizationGokulnath S
 

What's hot (20)

Market oriented Cloud Computing
Market oriented Cloud ComputingMarket oriented Cloud Computing
Market oriented Cloud Computing
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
Google App Engine ppt
Google App Engine  pptGoogle App Engine  ppt
Google App Engine ppt
 
Cloud Service Models
Cloud Service ModelsCloud Service Models
Cloud Service Models
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
CS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question BankCS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question Bank
 
System models for distributed and cloud computing
System models for distributed and cloud computingSystem models for distributed and cloud computing
System models for distributed and cloud computing
 
Cloud architecture
Cloud architectureCloud architecture
Cloud architecture
 
System models in distributed system
System models in distributed systemSystem models in distributed system
System models in distributed system
 
SLA Management in Cloud
SLA Management in CloudSLA Management in Cloud
SLA Management in Cloud
 
Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...
Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...
Cloud Computing Principles and Paradigms: 5 virtual machines provisioning and...
 
MapReduce in Cloud Computing
MapReduce in Cloud ComputingMapReduce in Cloud Computing
MapReduce in Cloud Computing
 
Levels of Virtualization.docx
Levels of Virtualization.docxLevels of Virtualization.docx
Levels of Virtualization.docx
 
Virtual machine security
Virtual machine securityVirtual machine security
Virtual machine security
 
JINI Technology
JINI TechnologyJINI Technology
JINI Technology
 
VTU 6th Sem Elective CSE - Module 3 cloud computing
VTU 6th Sem Elective CSE - Module 3 cloud computingVTU 6th Sem Elective CSE - Module 3 cloud computing
VTU 6th Sem Elective CSE - Module 3 cloud computing
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualization
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
Cloud Reference Model
Cloud Reference ModelCloud Reference Model
Cloud Reference Model
 

Viewers also liked

Ecg analysis in the cloud
Ecg analysis in the cloudEcg analysis in the cloud
Ecg analysis in the cloudgaurav jain
 
Biology protein structure in cloud computing
Biology protein structure in cloud computingBiology protein structure in cloud computing
Biology protein structure in cloud computinggaurav jain
 
Federation of OpenStack clouds
Federation of OpenStack cloudsFederation of OpenStack clouds
Federation of OpenStack cloudsCoreStack
 
Cloud applications - Protein Structure Predication and gene expression data...
Cloud applications - Protein Structure Predication  and  gene expression data...Cloud applications - Protein Structure Predication  and  gene expression data...
Cloud applications - Protein Structure Predication and gene expression data...Pushpendra Singh Dangi
 
Geoscience satellite image processing
Geoscience satellite image processingGeoscience satellite image processing
Geoscience satellite image processinggaurav jain
 
Social Media, Cloud Computing and architecture
Social Media, Cloud Computing and architectureSocial Media, Cloud Computing and architecture
Social Media, Cloud Computing and architectureRick Mans
 
Satellite image processing
Satellite image processingSatellite image processing
Satellite image processingalok ray
 
Social Cloud: Cloud Computing in Social Networks
Social Cloud: Cloud Computing in Social NetworksSocial Cloud: Cloud Computing in Social Networks
Social Cloud: Cloud Computing in Social NetworksSimon Caton
 

Viewers also liked (9)

Ecg analysis in the cloud
Ecg analysis in the cloudEcg analysis in the cloud
Ecg analysis in the cloud
 
Biology protein structure in cloud computing
Biology protein structure in cloud computingBiology protein structure in cloud computing
Biology protein structure in cloud computing
 
Federation of OpenStack clouds
Federation of OpenStack cloudsFederation of OpenStack clouds
Federation of OpenStack clouds
 
Cloud applications - Protein Structure Predication and gene expression data...
Cloud applications - Protein Structure Predication  and  gene expression data...Cloud applications - Protein Structure Predication  and  gene expression data...
Cloud applications - Protein Structure Predication and gene expression data...
 
Geoscience satellite image processing
Geoscience satellite image processingGeoscience satellite image processing
Geoscience satellite image processing
 
Social Media, Cloud Computing and architecture
Social Media, Cloud Computing and architectureSocial Media, Cloud Computing and architecture
Social Media, Cloud Computing and architecture
 
Satellite image processing
Satellite image processingSatellite image processing
Satellite image processing
 
Social Cloud: Cloud Computing in Social Networks
Social Cloud: Cloud Computing in Social NetworksSocial Cloud: Cloud Computing in Social Networks
Social Cloud: Cloud Computing in Social Networks
 
cloud computing ppt
cloud computing pptcloud computing ppt
cloud computing ppt
 

Similar to Task programming

djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...
djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...
djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...Dr. Thippeswamy S.
 
Lightening the burden of cloud resources administration: from VMs to Functions
Lightening the burden of cloud resources administration: from VMs to FunctionsLightening the burden of cloud resources administration: from VMs to Functions
Lightening the burden of cloud resources administration: from VMs to FunctionsEUBrasilCloudFORUM .
 
Introduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explainedIntroduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explainedDr Neelesh Jain
 
E5 05 ijcite august 2014
E5 05 ijcite august 2014E5 05 ijcite august 2014
E5 05 ijcite august 2014ijcite
 
Chetanya Dabi CLOUD COMPUTING PPT.pptx
Chetanya Dabi CLOUD COMPUTING PPT.pptxChetanya Dabi CLOUD COMPUTING PPT.pptx
Chetanya Dabi CLOUD COMPUTING PPT.pptxChetanyaDabi
 
Journey to Containerized Application / Google Container Engine
Journey to Containerized Application / Google Container EngineJourney to Containerized Application / Google Container Engine
Journey to Containerized Application / Google Container EngineGoogle Cloud Platform - Japan
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud ComputingAnimesh Chaturvedi
 
Docker Application to Scientific Computing
Docker Application to Scientific ComputingDocker Application to Scientific Computing
Docker Application to Scientific ComputingPeter Bryzgalov
 
Open shift and docker - october,2014
Open shift and docker - october,2014Open shift and docker - october,2014
Open shift and docker - october,2014Hojoong Kim
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platformnirajrules
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Supporting bioinformatics applications with hybrid multi-cloud services
Supporting bioinformatics applications with hybrid multi-cloud servicesSupporting bioinformatics applications with hybrid multi-cloud services
Supporting bioinformatics applications with hybrid multi-cloud servicesAhmed Abdullah
 
Cloud computing overview
Cloud computing overviewCloud computing overview
Cloud computing overviewkarthik s
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD Editor
 

Similar to Task programming (20)

djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...
djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...
djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...
 
Lightening the burden of cloud resources administration: from VMs to Functions
Lightening the burden of cloud resources administration: from VMs to FunctionsLightening the burden of cloud resources administration: from VMs to Functions
Lightening the burden of cloud resources administration: from VMs to Functions
 
Introduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explainedIntroduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explained
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
GCF
GCFGCF
GCF
 
Aneka
AnekaAneka
Aneka
 
E5 05 ijcite august 2014
E5 05 ijcite august 2014E5 05 ijcite august 2014
E5 05 ijcite august 2014
 
Chetanya Dabi CLOUD COMPUTING PPT.pptx
Chetanya Dabi CLOUD COMPUTING PPT.pptxChetanya Dabi CLOUD COMPUTING PPT.pptx
Chetanya Dabi CLOUD COMPUTING PPT.pptx
 
Journey to Containerized Application / Google Container Engine
Journey to Containerized Application / Google Container EngineJourney to Containerized Application / Google Container Engine
Journey to Containerized Application / Google Container Engine
 
aneka.pptx
aneka.pptxaneka.pptx
aneka.pptx
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud Computing
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
Docker Application to Scientific Computing
Docker Application to Scientific ComputingDocker Application to Scientific Computing
Docker Application to Scientific Computing
 
Open shift and docker - october,2014
Open shift and docker - october,2014Open shift and docker - october,2014
Open shift and docker - october,2014
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platform
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Cloud
CloudCloud
Cloud
 
Supporting bioinformatics applications with hybrid multi-cloud services
Supporting bioinformatics applications with hybrid multi-cloud servicesSupporting bioinformatics applications with hybrid multi-cloud services
Supporting bioinformatics applications with hybrid multi-cloud services
 
Cloud computing overview
Cloud computing overviewCloud computing overview
Cloud computing overview
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 

More from Yogendra Tamang

Azure machine learning tech mela
Azure machine learning tech melaAzure machine learning tech mela
Azure machine learning tech melaYogendra Tamang
 
Machine learning and azure ml studio gabc
Machine learning and azure ml studio gabcMachine learning and azure ml studio gabc
Machine learning and azure ml studio gabcYogendra Tamang
 
Machine learning and azure ml studio
Machine learning and azure ml studioMachine learning and azure ml studio
Machine learning and azure ml studioYogendra Tamang
 
Image classification with Deep Neural Networks
Image classification with Deep Neural NetworksImage classification with Deep Neural Networks
Image classification with Deep Neural NetworksYogendra Tamang
 
Efficient Neural Network Architecture for Image Classfication
Efficient Neural Network Architecture for Image ClassficationEfficient Neural Network Architecture for Image Classfication
Efficient Neural Network Architecture for Image ClassficationYogendra Tamang
 
Introduction and Starting ASP.NET MVC
Introduction and Starting ASP.NET MVCIntroduction and Starting ASP.NET MVC
Introduction and Starting ASP.NET MVCYogendra Tamang
 
Infromation Reprentation, Structured Data and Semantics
Infromation Reprentation,Structured Data and SemanticsInfromation Reprentation,Structured Data and Semantics
Infromation Reprentation, Structured Data and SemanticsYogendra Tamang
 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 PresentationYogendra Tamang
 
Classification and Clustering
Classification and ClusteringClassification and Clustering
Classification and ClusteringYogendra Tamang
 
Natural language processing
Natural language processingNatural language processing
Natural language processingYogendra Tamang
 

More from Yogendra Tamang (20)

.Net framework
.Net framework.Net framework
.Net framework
 
Asp.net orientation
Asp.net orientationAsp.net orientation
Asp.net orientation
 
Azure machine learning tech mela
Azure machine learning tech melaAzure machine learning tech mela
Azure machine learning tech mela
 
Machine learning and azure ml studio gabc
Machine learning and azure ml studio gabcMachine learning and azure ml studio gabc
Machine learning and azure ml studio gabc
 
Machine learning and azure ml studio
Machine learning and azure ml studioMachine learning and azure ml studio
Machine learning and azure ml studio
 
Image classification with Deep Neural Networks
Image classification with Deep Neural NetworksImage classification with Deep Neural Networks
Image classification with Deep Neural Networks
 
Efficient Neural Network Architecture for Image Classfication
Efficient Neural Network Architecture for Image ClassficationEfficient Neural Network Architecture for Image Classfication
Efficient Neural Network Architecture for Image Classfication
 
ADO.NET Introduction
ADO.NET IntroductionADO.NET Introduction
ADO.NET Introduction
 
Introduction and Starting ASP.NET MVC
Introduction and Starting ASP.NET MVCIntroduction and Starting ASP.NET MVC
Introduction and Starting ASP.NET MVC
 
Electronics projects
Electronics projectsElectronics projects
Electronics projects
 
Infromation Reprentation, Structured Data and Semantics
Infromation Reprentation,Structured Data and SemanticsInfromation Reprentation,Structured Data and Semantics
Infromation Reprentation, Structured Data and Semantics
 
Arduino Workshop Day 2
Arduino  Workshop Day 2Arduino  Workshop Day 2
Arduino Workshop Day 2
 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 Presentation
 
Virtualization lab
Virtualization labVirtualization lab
Virtualization lab
 
Path finder
Path finderPath finder
Path finder
 
Classification and Clustering
Classification and ClusteringClassification and Clustering
Classification and Clustering
 
Notation 3(n3)
Notation 3(n3)Notation 3(n3)
Notation 3(n3)
 
Cloud mobility final
Cloud mobility finalCloud mobility final
Cloud mobility final
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
IP/Wi-Fi Based Robot
IP/Wi-Fi Based RobotIP/Wi-Fi Based Robot
IP/Wi-Fi Based Robot
 

Recently uploaded

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

Task programming

  • 1.
  • 2. Introduction Computing categories Frameworks Task Based application models Aneka Task-Based programming ◦ Task programming model ◦ Task Programming examples Summary References
  • 3. Task computing: ◦ What is Task? a distinct unit of code, or a program, that can be separated and executed in a remote runtime environment ◦ Difference between Multithreaded Computing and Task computing: Multithreaded programming: mainly concerned with providing a support for parallelism within a single machine. Task computing: provides distribution by harnessing the computer power of several computing nodes ◦ Now clouds have emerged as an attractive solution.
  • 4.
  • 5. According to the specific nature of the problem, task computing is categorized into: ◦ High-performance computing (HPC) ◦ High-throughput computing (HTC) ◦ Many-task computing (MTC).
  • 6. use of distributed computing facilities for solving problems that need large computing power. Historically, supercomputers and clusters are specifically designed to support HPC applications.
  • 7. use of distributed computing facilities for applications requiring large computing power over a long period of time. HTC systems need to be robust and to reliably operate over a long time scale. Traditionally, computing grids composed of heterogeneous resources (clusters, workstations, and volunteer desktop machines) have been used to support HTC.
  • 8. aims to bridge the gap between HPC and HTC. MTC is similar to HTC, but it concentrates on the use of many computing resources over a short period of time to accomplish many computational tasks. In brief, MTC denotes high-performance computations comprising multiple distinct activities coupled via file system operations.
  • 9. Some popular software systems are ◦ Condor ◦ Globus Toolkit ◦ Sun Grid Engine (SGE) ◦ BOINC ◦ Nimrod/G ◦ Aneka.
  • 10. Condor ◦ most widely used and long-lived middleware for managing clusters, idle workstations, and a collection of clusters. Sun Grid Engine (SGE) ◦ Tool for managing heterogeneous resources and constitutes middleware for grid computing.
  • 11. The Globus Toolkit ◦ collection of technologies that enable grid computing. ◦ provides a comprehensive set of tools for sharing computing power, databases, and other services. Nimrod/G ◦ tool for automated modeling and execution of parameter sweep applications over global computational grids.
  • 12. Berkeley Open Infrastructure for Network Computing (BOINC) ◦ framework for volunteer and grid computing. ◦ allows us to turn desktop machines into volunteer computing nodes that are leveraged to run jobs when such machines become inactive.
  • 13. Embarrassingly parallel applications Parameter sweep applications MPI applications Workflow applications with task dependencies
  • 14. Constitute a collection of tasks that are independent from each other and that can be executed in any order. The tasks might be of the same type or of different types, and they do not need to communicate among themselves. Supporting frameworks are Globus Toolkit, BOINC, and Aneka.
  • 15. Parameter sweep applications are a specific class of embarrassingly parallel applications for which the tasks are identical in their nature and differ only by the specific parameters used to execute them. Any distributed computing framework that provides support for embarrassingly parallel applica- tions can also support the execution of parameter sweep applications, since the tasks composing the application can be executed independently of each other.
  • 16. Message Passing Interface (MPI) is a specification for developing parallel programs that communi- cate by exchanging messages. Compared to earlier models, MPI introduces the constraint of com- munication that involves MPI tasks that need to run at the same time.
  • 17. Task Programming Model Figure:- Task Programming Model Scenario
  • 18. Developing Application with Task Model Steps: 1. Define Classes With Itask Interface 2. Create a properly Configured AnekaApplication instance 3. Create ITask instances and wrap them into AnekaTask instances 4. Execute the application and wait for its completion
  • 19. ITask Interface Namespace Aneka.Tasks { //Codes public interface ITask { //Codes public void Execute(); } }
  • 20. ITask Interface Implementaion Using System; Using Aneka.Tasks; namespace GaussSample { [Serializable] public class GaussTask:ITask { private double x; public double X{ get {return this.x; } set {this.x=value;} } private double y; public double Y{ get {return this.y; } set {this.y=value;} } public void Execute() { this.y=Math.Exp(-this.x*this.x); } } }
  • 21. Wrapping an ITask into an Aneka Task Interface GaussTask gauss=new GaussTask(); AnekaTask task=new AnekaTask(gauss); task.AddFile("input.txt", FileDataType.Input, FileAttributes.Local); task.AddFile("result.txt", FileDataType.Output, FileAttributes.Local);
  • 22. Controlling Task Execution Computation Logic : Task Classes, AnekaTask Coordination logic : AnekaApplication Class AnekaApplication Class Provides following operations: 1. Static and Dynamic task submission 2. Application state and task state monitoring 3. Event based notification of tasks completion or failure.
  • 23. Task Submission Static Submission ◦ Creation of all tasks to be executed in one one loop and submission as single bag Dynamic Submission ◦ Submission as a result of event-based notification mechanism
  • 24. Static Submission Configuration conf=new Configuration.GetConfiguration("conf.xml"); conf.SingleSubmission=true; AnekaApplication<AnekaTask, TaskManager> app=new AnekaApplicatoin<Task, TaskManager>(conf); for(int i=0;i<400;i++) { GaussTask gauss=new GaussTask(); gauss.X=i; AnekaTask task=new AnekaTask(gauss); app.AddWorkUnit(task); } app.SubmitExecute();
  • 26. File Management Files consists of ◦ Input Data ◦ Result of Computation ◦ Executable codes or library dependencies WorkUnit and ApplicationBase Classes for file management Using FileData Class, the user specifies the file dependencies of tasks and application.
  • 27. Task Libraries Ready to use tasks 1. File Copy 2. Substitute Operation 3. File Deletion 4. Timed Delay 7. Task Composition 8. Legacy Application Execution
  • 28. Web Services Integration Integration with other technologies and applications by means of web services. Operations supported through web service: 1. Local file copy on the remote node 2. File deletion 3. Parameter substitution 3. Legacy Application execution through the common shell services
  • 29. Aneka a Platform for Enterprise Grid/Cloud Computing 29 Anatomy of a Cloud IAASData Centers Clusters Storage Other Grids/Clouds Virtualization VM Management & Deployment Amazon S3, EC2 OpenNebula, Eucalyptus Mosso SAAS Web 2.0 Interface Programming API Scripting & Programming Languages PAAS Google AppEngine Microsoft Azure Manjrasoft Aneka Google Apps (Gmail, Docs,…) Salesforce.com QoSMetering SLANegotiationAdmissionControl PricingandBilling Accounting Public Cloud Private Cloud
  • 30. Aneka a Platform for Enterprise Grid/Cloud Computing 30 Aneka & Clouds Infrastructure as a Service Platform as a Service Software as a Service Aneka fits into the cloud architecture at the platform layer. This means that it provides a programming based interface for developing distributed application and a virtual execution environment in which the applications developed according to the published APIs can run. Public Cloud Private Cloud Aneka
  • 31. Aneka Architecture Aneka a Platform for Enterprise Grid/Cloud Computing 31 System Overview Executor Scheduler Executor Executor Executor Manager work units internet internet Aneka enterprise Cloud Manager work units Manager(s) Client Applications Workers Aneka Container
  • 32. Further on Aneka Aneka supports development of parameter sweep applications. Aneka can be used to manage workflows through plug ins.
  • 33. Summary  Task based programming is most intuitive approach for distributing the computation of an application over set of nodes Task Model Comprises set of services(directory, scheduling, execution and storage)
  • 34. References 1. Buyya, Selvi, Vecchiola. Mastering Cloud Computing. 1st. New Delhi: Mc Graw Hill, 2013.