Skip to main content

UI Management

 
UI Management
 
Application Interface
 
just as drivers provide a way for applications to make use of hardware subsystems without having to know every detail of the hardware's operation, application program interfaces (APIs) let application programmers use functions of the computer and operating system without having to directly keep track of all the details in the CPU's operation. Let's look at the example of creating a hard disk file for holding data to see why this can be important.
 
A programmer writing an application to record data from a scientific instrument might want to allow the scientist to specify the name of the file created. The operating system might provide an API function named MakeFile/COPY CON for creating files.
 
When writing the program, the programmer would insert a line that looks like this:
 
MakeFile [1, %Name, 2]
 
In this example, the instruction tells the operating system to create a file that will allow random access to its data (signified by the 1 -- the other option might be 0 for a serial file), will have a name typed in by the user (%Name) and will be a size that varies depending on how much data is stored in the file (signified by the 2 -- other options might be zero for a fixed size, and 1 for a file that grows as data is added but does not shrink when data is removed). Now, let's look at what the operating system does to turn the instruction into action.
 
The operating system sends a query to the disk drive to get the location of the first available free storage location.
 
With that information, the operating system creates an entry in the file system showing the beginning and ending locations of the file, the name of the file, the file type, whether the file has been archived, which users have permission to look at or modify the file, and the date and time of the file's creation.
 
The operating system writes information at the beginning of the file that identifies the file, sets up the type of access possible and includes other information that ties the file to the application. In all of this information, the queries to the disk drive and addresses of the beginning and ending point of the file are in formats heavily dependent on the manufacturer and model of the disk drive.
 
Because the programmer has written the program to use the API for disk storage, the programmer doesn't have to keep up with the instruction codes, data types and response codes for every possible hard disk and tape drive. The operating system, connected to drivers for the various hardware subsystems, deals with the changing details of the hardware -- the programmer must simply write code for the API and trusts the operating system to do the rest.
 
APIs have become one of the most hotly contested areas of the computer industry in recent years. Companies realize that programmers using their API will ultimately translate this into the ability to control and profit from a particular part of the industry. This is one of the reasons that so many companies have been willing to provide applications like readers or viewers to the public at no charge. They know consumers will request that programs take advantage of the free readers, and application companies will be ready to pay royalties to allow their software to provide the functions requested by the consumers.
 
 
User Interface
 
Just as the API provides a consistent way for applications to use the resources of the computer system; a user interface (UI) brings structure to the interaction between a user and the computer. In the last decade, almost all development in user interfaces has been in the area of the graphical user interface (GUI), with two models, Apple's Macintosh and Microsoft's Windows, receiving most of the attention and gaining most of the market share. The popular, open-source Linux operating system also supports a graphical user interface.
 
ui
 
There are other user interfaces, some graphical and some not, for other operating systems.
 
UNIX, for example, has user interfaces called shells that present a user interface more flexible and powerful than the standard operating system text-based interface. Programs such as the Korn Shelland the C Shell are text-based interfaces that add important utilities, but their main purpose is to make it easier for the user to manipulate the functions of the operating system. There are also graphical user interfaces, such as X-Windows and Gnome, which make UNIX and Linux more like Windows and Macintosh computers from the user's point of view.
 
It's important to remember that in all of these examples, the user interface is a program or set of programs that sits as a layer above the operating system itself. The same thing is true, with somewhat different mechanisms, of both Windows and Macintosh operating systems. The core operating-system functions -- the management of the computer system -- lie in the kernel of the operating system. The display manager is separate, though it may be tied tightly to the kernel beneath. The ties between the operating-system kernel and the user interface, utilities and other software define many of the differences in operating systems today, and will further define them in the future.
 

Comments

Popular posts from this blog

Voice Support Executive Jobs in Thane – 12th pass

Amazon currently hiring Marathi Voice Support Executive Job in Thane Maharashtra for 12th pass freshers who had fluency in Marathi or Hindi or English language can apply online with ease. Post: Voice Support Executive – Freshers Department: Customer Support Work location: Thane Maharashtra (candidate may get nearby branch of Mumbai ) Education: 12th pass and above Language Preference : Marathi / HI_IN / EN_IN Salary: 12,000 to 17,000/- per months Candidate who cleared 12th exam and looking for tele-calling job in Thane or back office jobs in Thane area for freshers, can apply jobs at amazon over here. Basic need to enrol for Amazon jobs in Thane: • Firstly, good in talk which is communication skills should be excellent in any of Marathi, or English. • Must be able to handle telephonic software support, should have computer knowledge. • Candidate should be able to handle the voice calls from local customers of Maharashtra state in Marathi or English Language. • Problem-solving ...

how to use Java code from Python using JPype:

  Sure, here are the complete steps to use Java code from Python using JPype: Install JPype: You can install JPype using pip by running the following command in your command prompt or terminal: Copy code pip install jpype1 Set up your Java environment: To use JPype, you'll need to have a Java Development Kit (JDK) installed on your system. You can download the latest JDK from the Oracle website. Write your Java code: Write your Java code in a text editor or an Integrated Development Environment (IDE) such as Eclipse, IntelliJ, or NetBeans. For example, you could write a simple Java class that prints "Hello, World!" to the console: java Copy code public class HelloWorld { public static void main (String[] args) { System.out.println( "Hello, World!" ); } } Compile your Java code: Compile your Java code using the javac command. Open your command prompt or terminal and navigate to the directory where your HelloWorld.java file is ...

Booting! What is this?

Booting! What is this? What is Booting? Booting  (booting up) is a bootstrapping process that starts operating systems when the user turns on a computer system. A boot sequence is the set of operations the computer performs when it is switched on that loads an operating system.   When you turn on the power to a computer, the first program that runs is usually a set of instructions kept in the computer's read-only memory ( ROM ). This code examines the system hardware to make sure everything is functioning properly. This power-on self test ( POST ) checks the  CPU , memory, and basic input-output systems ( BIOS ) for errors and stores the result in a special memory location. Once the  POST  has successfully completed, the software loaded in  ROM  (sometimes called the  BIOS  or firmware) will begin to activate the computer's disk drives. In most modern computers, when the computer activates the hard disk drive, it finds the first piec...