0% found this document useful (0 votes)
32 views11 pages

Time Sharing

The document discusses the time-sharing algorithm, which allows multiple users to share CPU time, creating the illusion of dedicated access. It also introduces Python as a programming language used to develop a game where two players take turns entering numbers, with the winner determined by the sum of their inputs. Additionally, it outlines the advantages and disadvantages of time-sharing, including quick response times and potential security issues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views11 pages

Time Sharing

The document discusses the time-sharing algorithm, which allows multiple users to share CPU time, creating the illusion of dedicated access. It also introduces Python as a programming language used to develop a game where two players take turns entering numbers, with the winner determined by the sum of their inputs. Additionally, it outlines the advantages and disadvantages of time-sharing, including quick response times and potential security issues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

GAME ON

TIME SHARING
algorithm
Made by: ABU. DAWOOD ASLAM, AHTISHAM
HUSSAIN, YAQZAN RAJPUT, ABDUR REHMAN
TABLE OF CONTENTS:
• What is Timesharing
• What is Python
• Game on Time Sharing
• IDE used for Python
• Advantage and Disadvantage of Timesharing
• Example
• Quote

2
TIME SHARING:
+ In time sharing the CPU time is shared among different processes
belonging to different users.
+ Each user has the illusion that the system is working for him/her
only.
+ Optimizes response time
+ Time slicing:
+ divide CPU equally among the users
+ CPU can move among programs and user if user jobs are
interactive E.g. MIT CTSS

3
TIME SHARING:
+ Time sharing is a technique which enables many people,
located at various terminals, to use a particular computer
system at the same time.
+ Time-sharing or multitasking is a logical extension of
multiprogramming. Processor's time which is shared among
multiple users simultaneously is termed as time- sharing.
+ The main difference between Multiprogrammed Batch
Systems and Time-Sharing Systems is that in case of
Multiprogrammed batch systems, objective is to maximize
processor use, whereas in Time-Sharing Systems objective is
to minimize response time.

4
PYTHON
+ Python is an interpreted, high-level, general-purpose
programming language. Created by Guido van Rossum and
first released in 1991, Python's design philosophy emphasizes
code readability with its notable use of significant whitespace.

5
GAME INTRODUCTION
+ In this game there are two user that can access by time
sharing in which each player turns come one by one by given
specific range then enter number between 1 to 10 and the
result of the game is sum of numbers that enter by players
whose number is greater that player will win.

6
IDE USED FOR PYTHON
+ ANACONDA
+ Anaconda is a free and open-source distribution of the
Python and R programming languages for scientific
computing, that aims to simplify package management
and deployment. Package versions are managed by the
package management system conda.

7
LIBRARY USED FOR GAME
+ PANDAS
+ In computer programming, pandas is a
software library written for the Python programming
language for data manipulation and analysis. In particular,
it offers data structures and operations for manipulating
numerical tables and time series. It is free software
released under the three-clause BSD license.

8
TIME SHARING ADVANTAGE
AND DISADVANTAGE:
+ Multiple jobs are executed by the CPU by switching so
frequently. Thus, the user can receives an immediate response.
Advantages
+ Provide advantage of quick response.
+ Avoids duplication of software.
+ Reduces CPU idle time.
Disadvantages
+ Problem of reliability.
+ Question of security and integrity of user programs and
data.
+ Problem of data communication.

9
EXAMPLE:

10
THANK YOU ~!

11

You might also like