Boro Jakimovski - PowerPoint PPT Presentation

About This Presentation
Title:

Boro Jakimovski

Description:

Title: Slide 1 Last modified by: Zivana Komlenov Document presentation format: Custom Other titles: Helvetica Light Chalkboard SE Helvetica Wingdings 2 Default Design ... – PowerPoint PPT presentation

Number of Views:45
Avg rating:3.0/5.0
Slides: 15
Provided by: acrs
Category:
Tags: boro | jakimovski

less

Transcript and Presenter's Notes

Title: Boro Jakimovski


1
11th Workshop on "Software Engineering Education
and Reverse Education" 22nd - 27th August 2011
  • Boro Jakimovski
  • Faculty of Computer Science and Engineering
  • University Sa. Cyril and Methodius in Skopje
  • boro.jakimovski_at_finki.ukim.mk

2
  • Advanced Java Topics
  • Current materials
  • New contributions
  • Final remarks

3
  • Joint Course in OOP is divided into several
    sections
  • Basic Java
  • Advanced Topics
  • Data Structures and Algorithms
  • Advanced Topics
  • Strings, Windows and Applets, Collections, Java
    I/O System, Serialization, Java 5 New Features,
    Generics, Enumerated Types, Annotations, Threads,
    Network Programming, Distributed Applications,
    Java Security, Databases, Internet Programming,
    EJB, Mobile Agents

4
(No Transcript)
5
  • Supporting Java Examples
  • Java Enumeration Types
  • Java Generics
  • Bigger Tasks
  • Collections
  • Advanced Strings
  • Distributed Applications

6
  • The examples are organized as follows
  • Task definition
  • Explanation
  • Solution
  • Sometimes there are several solutions if several
    approaches are possible or if several different
    classes in Java exist that can be used for
    solving the problem

7
  • Task 1. Holding objects
  • Task 2. Tupple task library
  • Task 3. Generator interface
  • Task 4. Bingo
  • Task 5. Media Library
  • Task 6. Joining Media Library

8
(No Transcript)
9
  • Task 1. Card
  • Task 2. 3-bit RGB Palette Enumeration

10
  • Collections
  • Process Scheduler
  • Betting
  • Diet planner
  • Collection synchronization
  • Advanced Strings
  • Word counting
  • Text class
  • Distributed applications
  • Game bingo
  • Game submarine

11
  • Process scheduler
  • One of the main elements of a computer operating
    system is its scheduler of processes. Its duty is
    for a given set of processes, each having
    specified execution time and priority, to
    schedule their intervals of processor time. The
    purpose of this task is to implement a simulator
    that will simulate the execution of such process
    scheduler.
  • The scheduler receives as input information a
    list of processes, each having a process arrival
    time (seconds from boot), execution time
    (seconds), priority (1-10, 10 being the highest
    priority). The scheduler behaves using the
    following rules
  • If there is no process for processing wait
  • If there are processes that have arrived, choose
    the process with the highest priority that waited
    the longest
  • The program must receive its input from a text
    file having several lines in the following
    format
  • ltPROCESS NAMEgtltARRIVAL TIMEgtltEXECUTION
    TIMEgtltPRIORITYgt

12
  • Explanation
  • The best implementation of a prioritized
    scheduler is by using a PriorityQueue. Java API
    has such class already implemented in java.util
    package. In order to utilize this class one must
    implement a class Process that implements the
    Comparable interface.
  • We can also implement this program by using
    SortedLinkedListltProcessgt or a LinkedListltProcessgt
    and use the Collections.sort(ListltEgt list)
    method for sorting Lists using natural ordering.
    In any case, we need to implement the Packet as
    Comparable class, ordered by priority and arrival
    time.

13
  • Use these materials in the courses from this year
  • Gather feedback from the students
  • Integrate with new teaching materials from Novi
    Sad

14
  • Questions?
Write a Comment
User Comments (0)
About PowerShow.com