C:\UMBC\331\java> java.ext.dirs=C:\JDK1.2\JRE\lib\ext java.io.tmpdir=C:\WINDOWS\TEMP\ os.name=Windows 95 java.vendor=Sun Microsystems Inc. java.awt.printerjob=sun.awt.windows.WPrinterJob java.library.path=C:\JDK1.2\BIN;.;C:\WINDOWS\SYSTEM;C:\... java.vm.specification.vendor=Sun Microsystems Inc. sun.io.unicode.encoding=UnicodeLittle file.encoding=Cp1252 java.specification.vendor=Sun Microsystems Inc. user.language=en user.name=nicholas java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport... java.vm.name=Classic VM java.class.version=46.0 java.vm.specification.name=Java Virtual Machine Specification sun.boot.library.path=C:\JDK1.2\JRE\bin os.version=4.10 java.vm.version=1.2 java.vm.info=build JDK-1.2-V, native threads, symcjit java.compiler=symcjit path.separator=; file.separator=\ user.dir=C:\UMBC\331\java sun.boot.class.path=C:\JDK1.2\JRE\lib\rt.jar;C:\JDK1.2\JR... user.name=nicholas user.home=C:\WINDOWS C:\UMBC\331\java>java envSnoop -- listing properties -java.specification.name=Java Platform API Specification awt.toolkit=sun.awt.windows.WToolkit java.version=1.2 java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment user.timezone=America/New_York java.specification.version=1.2 java.vm.vendor=Sun Microsystems Inc. user.home=C:\WINDOWS java.vm.specification.version=1.0 os.arch=x86 java.awt.fonts= java.vendor.url=http://java.sun.com/ user.region=US file.encoding.pkg=sun.io java.home=C:\JDK1.2\JRE java.class.path=C:\Program Files\PhotoDeluxe 2.0\Adob... line.separator=
View full slide show




Chapter 2: Operating-System Structures  Operating System Services  User Operating System Interface  System Calls  Types of System Calls  System Programs  Operating System Design and Implementation  Operating System Structure  Virtual Machines  Operating System Debugging  Operating System Generation  System Boot Operating System Concepts – 8th Edition 2.2 Silberschatz, Galvin and Gagne ©2009
View full slide show




Chapter 2: Operating-System Structures  Operating System Services  User Operating System Interface  System Calls  Types of System Calls  System Programs  Operating System Design and Implementation  Operating System Structure  Virtual Machines  Operating System Debugging  Operating System Generation  System Boot Operating System Concepts – 8th Edition 2.2 Silberschatz, Galvin and Gagne ©2009
View full slide show




Chapter 2: Operating-System Structures  Operating System Services  User Operating System Interface  System Calls  Types of System Calls  System Programs  Operating System Design and Implementation  Operating System Structure  Virtual Machines  Operating System Debugging  Operating System Generation  System Boot Operating System Concepts Essentials – 8th Edition 2.2 Silberschatz, Galvin and Gagne ©2011
View full slide show




Chapter 2: Operating-System Structures  Operating System Services  User Operating System Interface  System Calls  Types of System Calls  System Programs  Operating System Design and Implementation  Operating System Structure  Operating System Debugging  System Boot Operating System Concepts – 9th Edition 2.2 Silberschatz, Galvin and Gagne
View full slide show




// sort the list for (int position=0; position <= 3; position++) { for (int scan=0; scan < list.length; scan++) { temp = String.valueOf(list[scan]); digit = Character.digit(temp.charAt(3-position), 10); digitQueues[digit].add(new Integer(list[scan])); } // gather numbers back into list num = 0; for (int digitVal = 0; digitVal <= 9; digitVal++) { while (!(digitQueues[digitVal].isEmpty())) { numObj = digitQueues[digitVal].remove(); list[num] = numObj.intValue(); num++; } } } // output the sorted list for (int scan=0; scan < list.length; scan++) System.out.println(list[scan]); } } Java Foundations, 3rd Edition, Lewis/DePasquale/Chase 18 - 48
View full slide show




// encode message for (int scan = 0; scan < message.length(); scan++) { keyValue = encodingQueue.remove(); encoded += (char) (message.charAt(scan) + keyValue); encodingQueue.add(keyValue); } System.out.println ("Encoded Message:\n" + encoded + "\n"); // decode message for (int scan = 0; scan < encoded.length(); scan++) { keyValue = decodingQueue.remove(); decoded += (char) (encoded.charAt(scan) - keyValue); decodingQueue.add(keyValue); } System.out.println ("Decoded Message:\n" + decoded); } } Code\chap14\Codes.java Java Foundations, 3rd Edition, Lewis/DePasquale/Chase 14 - 15
View full slide show




// encode message for (int scan = 0; scan < message.length(); scan++) { keyValue = encodingQueue.remove(); encoded += (char) (message.charAt(scan) + keyValue); encodingQueue.add(keyValue); } System.out.println ("Encoded Message:\n" + encoded + "\n"); // decode message for (int scan = 0; scan < encoded.length(); scan++) { keyValue = decodingQueue.remove(); decoded += (char) (encoded.charAt(scan) - keyValue); decodingQueue.add(keyValue); } System.out.println ("Decoded Message:\n" + decoded); } } Code\chap14\Codes.java Java Foundations, 3rd Edition, Lewis/DePasquale/Chase 14 - 16
View full slide show




bubbleSort /** * Sorts the specified array of objects using a bubble sort * algorithm. * * @param data the array to be sorted */ public static > void bubbleSort (T[] data) { int position, scan; T temp; for (position = data.length - 1; position >= 0; position--) { for (scan = 0; scan <= position - 1; scan++) { if (data[scan].compareTo(data[scan+1]) > 0) { /** Swap the values */ temp = data[scan]; data[scan] = data[scan + 1]; data[scan + 1] = temp; } } } } © 2010 Pearson Addison-Wesley. All rights reserved. 1-30 1-30
View full slide show




Operating System Design and Implementation  Design and Implementation of OS not “solvable”, but some approaches have proven successful  Internal structure of different Operating Systems can vary widely  Start by defining goals and specifications  Affected by choice of hardware, type of system  User goals and System goals  User goals – operating system should be convenient to use, easy to learn, reliable, safe, and fast  System goals – operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient Operating System Concepts – 8th Edition 2.30 Silberschatz, Galvin and Gagne ©2009
View full slide show




Operating System Design and Implementation  Design and Implementation of OS not “solvable”, but some approaches have proven successful  Internal structure of different Operating Systems can vary widely  Start by defining goals and specifications  Affected by choice of hardware, type of system  User goals and System goals  User goals – operating system should be convenient to use, easy to learn, reliable, safe, and fast  System goals – operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient Operating System Concepts – 8th Edition 2.27 Silberschatz, Galvin and Gagne ©2009
View full slide show




Chapter 1: Introduction  What Operating Systems Do  Computer-System Organization  Computer-System Architecture  Operating-System Structure  Operating-System Operations  Process Management  Memory Management  Storage Management  Protection and Security  Distributed Systems  Special-Purpose Systems  Computing Environments  Open-Source Operating Systems Operating System Concepts with Java – 8th Edition 1.2 Silberschatz, Galvin and Gagne ©2009
View full slide show




Operating-System Operations  Interrupt driven by hardware  Software error or request creates exception or trap  Division by zero, request for operating system service  Other process problems include infinite loop, processes modifying each other or the operating system  Dual-mode operation allows OS to protect itself and other system components  User mode and kernel mode  Mode bit provided by hardware  Provides ability to distinguish when system is running user code or kernel code  Some instructions designated as privileged, only executable in kernel mode  System call changes mode to kernel, return from call resets it to user Operating System Concepts with Java – 8th Edition 1.30 Silberschatz, Galvin and Gagne ©2009
View full slide show




Operating System Services  Operating systems provide an environment for execution of programs and services to programs and users  One set of operating-system services provides functions that are helpful to the user:  User interface - Almost all operating systems have a user interface (UI).  Varies between Command-Line (CLI), Graphics User Interface (GUI), Batch  Program execution - The system must be able to load a program into memory and to run that program, end execution, either normally or abnormally (indicating error)  I/O operations - A running program may require I/O, which may involve a file or an I/O device  File-system manipulation - The file system is of particular interest. Programs need to read and write files and directories, create and delete them, search them, list file Information, permission management. Operating System Concepts – 8th Edition 2.4 Silberschatz, Galvin and Gagne ©2009
View full slide show




Operating System Design and Implementation  Design and Implementation of OS not “solvable”, but some approaches have proven successful  Internal structure of different Operating Systems can vary widely  Start by defining goals and specifications  Affected by choice of hardware, type of system  User goals and System goals  User goals – operating system should be convenient to use, easy to learn, reliable, safe, and fast  System goals – operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient Operating System Concepts Essentials – 8th Edition 2.30 Silberschatz, Galvin and Gagne ©2011
View full slide show




Reasoning Capabilities Buildfile: build.xml init: compile: Finding Transitive Closures (RDFS reasoning) dist: [jar] Building jar: /home/aks1/software/eclipse/workspace/ontojena/dist/lib/ontojena.jar Inferred Triples vehicle run: [java] MODEL OK [java] Resource: http://ontosem.org/#fire-engine Land-vehicle [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#fire-engine) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#all) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#physical-object) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#inanimate) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#wheeled-vehicle) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#engine-propelled-vehicle) Engine-propelled--vehicle Wheeled--vehicle [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#wheeled-engine-vehicle) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#artifact) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#object) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#land-vehicle) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#vehicle) [java] - (http://ontosem.org/#fire-engine rdfs:subClassOf http://ontosem.org/#truck) Wheeled-engine-vehicle [java] - (http://ontosem.org/#fire-engine rdfs:label ' "a truck with equipment for fighting fires"') [java] - (http://ontosem.org/#fire-engine rdf:type owl:Class) [java] fire-engine recognized as subclas of vehicle BUILD SUCCESSFUL Total time: 10 seconds real 0m11.144s user 0m9.530s sys 0m0.190s [[email protected] ontojena]$ Truck Fire-engine
View full slide show




Class Hierarchy [http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html java.lang.Object    |    +--java.lang.Throwable          |          +--java.lang.Exception          |     |          |     +--java.lang.ClassNotFoundException          |     |          |     +--java.io.IOException          |     |     |          |     |     +--java.io.FileNotFoundException          |     |          |     +--java.lang.RuntimeException          |           |          |           +--java.lang.NullPointerException          |           +--java.lang.ArithmeticException           |           +--java.lang.IllegalArgumentException          |           +--java.lang.IndexOutOfBoundsException          |                 |          |                 +--java.lang.ArrayIndexOutOfBoundsException          |          +--java.lang.Error                |                +--java.lang.VirtualMachineError                      |                      +--java.lang.OutOfMemoryError  
View full slide show