




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、LessonInterfaces12What is API?What is the user interface?Warm-up Exercises application program interface应用程序接口user interface 用户界面keep track of 记录specify 详细说明make file 生成文件random access 随机存取disk drive 磁盘驱动器Word Preparationfree storage 空闲记忆区archive 存档response codes 响应码tape drive 磁带驱动器graphical user in
2、terface图形用户界面shell 外壳程序Word PreparationThe interfaces to the world include the application program interface and the user interface.Application Program InterfaceJust as drivers provide a way for applications to make use of hardware subsystems without having to know every detail of the hardwares oper
3、ation, 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 CPUs operation. Lets look at the example of creating a hard disk file for holding data to see why this can be im
4、portant. Text应用程序接口(API)使应用程序编程人员可以利用计算机和操作系统的功能,而不必直接跟踪CPU操作的所有细节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 for creating
5、files. When writing the program, the programmer would insert a line that looks like this: MakeFileIn this example, the instruction tells the operating system to create a file that will allow random access to its data , will have a name typed in by the user, and will be a size that varies depending o
6、n how much data is stored in the file (2). Now, lets look at what the operating system does to turn the instruction into action.TextThe operating system sends a query to the disk drive to get the location of the first available free storage location. 1. With that information, the operating system cr
7、eates 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 files creation. 2. The operating system writes in
8、formation 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. TextIn all of this information, the queries to the disk drive and addresses of the beginning and ending point of the file are in
9、formats heavily dependent on the manufacturer and model of the disk drive. Because the programmer has written her program to use the API for disk storage, she doesnt have to keep up with the instruction codes, data types, and response codes for every possible hard disk and tape drive. The operating
10、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 trust the operating system to do the rest.Text她不必涉及每个磁盘与磁带驱动器的指令代码、数据类型和响应代码APIs have become one of the most hotly contested areas
11、 of the computer industry in recent years. Companies realize that programmers using their API will ultimately translate 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 read
12、ers 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. Text他们知道,客户会请求程序利用免费阅读器。应用程序公司要准备支付版税,使其
13、软件提供客户请求的功能User InterfaceJust 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 ar
14、ea of the graphical user interface (GUI), with two models, Apples Macintosh and Microsofts 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.TextThere are other user interfaces, some
15、 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 Shell and the C Shell are text-based interfaces that
16、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, that make Unix and Linux more like Windows and Macintosh computers from the users point of vie
17、w. TextIts 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-s
18、ystem 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 th
19、e differences in operating systems today, and will further define them in the future. Text用户界面是位于操作系统上层的一个或一组程序。User InterfaceA set of routines that an application program uses to request and carry out lower-level services performed by a computers operating system.The aspects of a computer system or
20、 program which can be seen (or heard or otherwise perceived) by the human user, and the commands and mechanisms the user uses to control its operation and input data.Key TermsApplication Program InterfaceThe use of pictures rather than just words to represent the input and output of a program. A pro
21、gram with a GUI runs under some windowing system (e.g. The X Window System, MacOS, Microsoft Windows, Acorn RISC OS, NEXTSTEP). The program displays certain icons, buttons, dialogue boxes, etc. in its windows on the screen and the user controls it mainly by moving a pointer on the screen (typically
22、controlled by a mouse) and selecting certain objects by pressing buttons on the mouse while the pointer is pointing at them. This contrasts with a command line interface where communication is by exchange of strings of text.Key TermsGraphical User InterfacePlural Unices. An interactive time-sharing
23、operating system invented in 1969 by Ken Thompson after Bell Labs left the Multics project, originally so he could play games on his scavenged PDP-7. Dennis Ritchie, the inventor of C, is considered a co-author of the system. The turning point in Unixs history came when it was reimplemented almost e
24、ntirely in C during 1972 - 1974, making it the first source-portable OS. Unix subsequently underwent mutations and expansions at the hands of many different people, resulting in a uniquely flexible and developer-friendly environment. By 1991, Unix had become the most widely used multi-user general-p
25、urpose operating system in the world. Many people consider this the most important victory yet of hackerdom over industry opposition (but see Unix weenie and Unix conspiracy for an opposing point of view). Key TermsUNIX Operating SystemUnix is now offered by many manufacturers and is the subject of an international standardisation effort called?. Unix-like operating systems include AIX, A/UX, BSD, Debian, FreeBSD, GNU, HP-UX, Linux, NetBSD, NEXTSTEP, OpenBSD, OPENSTEP, OSF, POSIX, RISCiX, Solaris, SunOS, System V, Ultrix, US
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 空间光学玻璃的表面清洁与保护技术考核试卷
- 机械行业管理词汇
- 民间活动唱大戏活动方案
- 汉中餐饮店五一活动方案
- 欢庆祖国活动方案
- 模拟市场活动方案
- 歌颂国歌活动方案
- 汽车园区剪彩活动方案
- 沐浴露节日促销活动方案
- 治保委员活动方案
- 2025-2030中国不饱和聚酯树脂行业发展状况及产销需求预测报告
- 2025-2030年数控机床产业行业市场现状供需分析及投资评估规划分析研究报告
- 新疆乌鲁木齐市六校2023−2024学年高一下学期期末联考 数学试题(含解析)
- 洗车厂入股合同协议书
- 收纳盒项目可行性研究报告样例参考模板
- 2025广西华锡集团股份限公司岗位招聘38人易考易错模拟试题(共500题)试卷后附参考答案
- 企业廉洁自律课件下载
- 游戏用户忠诚度评估-全面剖析
- 国际组织招聘面试问答范文
- 环卫作业安全培训课件
- 战备基础知识课件
评论
0/150
提交评论