glob (programming) and spool (/var/spool)
http://en.wikipedia.org/wiki/Glob_(programming)
In computer programming, in particular in a Unix-like environment, the term globbing is sometimes used to refer to pattern matching based on wildcard characters.[citation needed] The noun "glob" is used to refer to a particular pattern, e.g. "use the glob *.log to match all those log files".[citation needed] Its notation is simpler than regular expressions, and without their expressive power.
http://en.wikipedia.org/wiki/Spooling
In computing, SPOOL is an acronym for simultaneous peripheral operations on-line. It is a type of buffering. The most common spooling application is print spooling, which places a task (or 'print job') into a queue for extended or later processing.
Contents
[hide]
Origin of the term[edit]
According to Tanenbaum, "SPOOL" is an acronym for simultaneous peripheral operations on-line;[1] for printers: simultaneous peripheral output on line. Possibly the term is influenced by the reel (or spool) of a magnetic tape, the part on which tape is wound for later use. A more modern interpretation of SPOOL comes from the flowchart drawing icon of a spool of thread, which, in IBM-ese, represents the (perhaps) temporary storage of data on a magnetic disk drive, under the control of an operating system task.
History[edit]
In a computer system peripheral equipment such as printers and punched card readers and punches are very slow relative to the performance of the rest of the system. Getting input into and output from the system was quickly seen to be a bottleneck. For example a job which read punched cards or generated printed output directly was forced to run at the speed of the slow mechanical devices.
In the late 1950s and early 1960s, computers used SPOOL software, e.g., IBM "SPOOL System", 7070-IO-076, to copy files from one medium to another: punch card to tape, tape to punch card and tape to printer, with occasional use for card-to-card copying.[1] The introduction of the relatively inexpensive IBM 1401 led to a temporary reduction in the use of SPOOL software, since many large computer installations used a stand-alone 1401 to drive printers and card equipment and process tapes for a larger computer system.
Early mainframe computers had no disk drives and slightly more recent ones had, by current standards, small and expensive hard disks; in later systems offline tape handling and SPOOL use of tape disappeared in favor of disks. Software such as IBM's Attached Support Processor allowed a smaller System/360 to process spool files on disk for one or more larger systems.
Process[edit]
The most common spooling application is print spooling: documents formatted for printing are usually stored into an area on a disk and retrieved and printed by a printer at its own rate. Printers typically can print only a single document at a time and require seconds to minutes to do so. With spooling, multiple processes can write documents to a print queue without waiting. As soon as a process has written its document to the spool device, the process can perform other tasks, while a separate printing process operates the printer.
For example, when a city prepares payroll checks, the actual computation may take a matter of minutes or even seconds, but the printing process might take hours. If the program printed directly, computing resources (CPU, memory, peripherals) would be tied up until the program was able to finish. The same is true of personal computers. Without spooling, a word processor would be unable to continue until printing finished. Without spooling, most programs would be relegated to patterns of fast processing and long waits, an inefficient paradigm.[2]
Spooler or print management software allow priorities to be assigned to jobs, notify users when their output has been printed, distribute jobs among several printers, allow forms or paper to be changed, or select it automatically, generate banner pages to identify and separate print jobs, etc.
A batch processing system uses spooling to maintain a queue of ready-to-run jobs which can be started as soon as the system has the resources to process them.
Banner page[edit]
A banner page (also called a burst page, job sheet, or a printer separator), is used in computerized printing in order to separate documents (or "print jobs") from each other and to identify, e.g., the originator of the print request by username, an account number, a bin for pickup. These pages are typically used in office environments where many people share a small number of printers. In some cases, print jobs are sent to a central processing area where messengers take the printouts back to the owner, but the usual practice in modern office environments is for the user to retrieve his or her own documents. The banner page makes it clear who printed each job.
Depending upon the configuration, the banner page may be generated by the print spooler—software running on a computer which buffers and prioritizes print jobs— by a print server—a computer or device that is connected to one or more printers and to client computers over a network— or by the printer itself.
Uses and advantages[edit]
The temporary storage area to which E-mail is delivered by a Mail Transfer Agent and in which it waits to be picked up by a Mail User Agent is sometimes called a mail spool. Likewise, a storage area for Usenet articles may be referred to as a news spool. (On Unix-like systems, these areas are usually located in the/var/spool directory.) Mail and news spools usually allow random access to individual messages.
In the later 1960s and early 1970s, computers handled punch cards, and spooling systems such as HASP, FIDO, PATCHES,[3] SHADOW & SHADOW II (primarily teleprocessing, but control program same as PATCHES), POWER, GRASP, and The Spooler found they could benefit batch programs by spooling card input and output. (Some centers directed punch card and printed output to tape for later processing. The term 'spooling' may derive from these reels or 'spools' of tape, although the terms normally used for tape were reel or tape volume; this etymology has not been sourced.)[2]
http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
|
Spool for tasks waiting to be processed, e.g., print queues and outgoing mail queue. |
|
Deprecated location for users' mailboxes.[8] |
glob (programming) and spool (/var/spool)的更多相关文章
- /var/spool/clientmqueue 下生成太多文件处理
问题现象: linux操作系统中的/var/spool/clientmqueue/目录下存在大量文件. 原因分析: 系统中有用户开启了cron,而cron中执行的程序有输出内容,输出内容会以邮件形式发 ...
- /var/spool/postfix/maildrop 占用inode索引及磁盘空间解决办法
1.问题表现和检查 运行df -i / 查看inode使用是否满: 2.查看/var/spool/postfix/maildrop是否有非常多的小文件,ls直接卡死等情况 解决: 删除小文件: cd ...
- 解决Centos关闭You have new mail in /var/spool/mail/root提示
昨天搬到阿里云了. 装的系统是Centos 6.3的加固版 今天查看内存的时候 出现一天奇怪的提示 You have new mail in /var/spool/mail/root 有的时候每敲一下 ...
- /var/spool/postfix/maildrop小文件太多造成inode索引使用完解决
/var/spool/postfix/maildrop 小文件太多造成inode索引使用完解决办法 问题表现和检查: 1.运行df -i / 查看inode使用是否满: 2.查看/var/spool/ ...
- You have new mail in /var/spool/mail/root 烦不烦你(转)
转自(http://blog.csdn.net/yx_l128125/article/details/7425182) 有时在进入系统的时候经常提示You have new mail in /var/ ...
- /var/spool/clientmqueue目录下存在大量文件的原因及解决方法
问题现象:linux操作系统中的/var/spool/clientmqueue/目录下存在大量文件.原因分析: 系统中有用户开启了cron,而cron中执行的程序有输出内容,输出内容会以邮件形式发给c ...
- Linux关闭You have new mail in /var/spool/mail/root提示
终端远程登陆Linux后经常提示You have new mail in /var/spool/mail/root 这个提示是LINUX会定时查看LINUX各种状态做汇总,每经过一段时间会把汇总的信息 ...
- 系统磁盘优化——"/var/spool/postfix/maildrop"
文件清理 最近某服务器磁盘空间告警,在排查过程中发现"/var/spool/postfix/maildrop"目录下堆积了很多小文件,起初想直接删除,但是使用rm删除是提示“参数列 ...
- /var/spool/clientmqueue目录~清理
今天nagios报警,一台服务器的disk满了,使用du -sh * 或 du -sh /* 查看目录的大小,查找占用空间大的目录/var/spool/clientmqueue.... 然后我就想/v ...
随机推荐
- svg动画 之 我的自制太阳系
SVG意为可缩放矢量图形,svg的图片与普通的jpg,png等图片相比,其优势在于不失真.一般普通的图片放大后,会呈现出锯齿的形状,但是svg图片则不会这样,它可以被高质量地打印. 现在就用dream ...
- AspNetPager分页控件官方网站
原文发布时间为:2009-12-04 -- 来源于本人的百度文章 [由搬家工具导入] http://www.webdiyer.com/AspNetPager
- 【全局变量】mysql查看全局变量以及设置全局变量的值
1.查看mysql的所有全局变量的值 SHOW GLOBAL VARIABLES 或者 SHOW VARIABLES mysql有很多全局变量,包括系统的一些基本信息,以及mysql的一些基本配置都可 ...
- bzoj 1031 [JSOI2007]字符加密Cipher 后缀数组模板
题目链接 题目描述 喜欢钻研问题的JS同学,最近又迷上了对加密方法的思考.一天,他突然想出了一种他认为是终极的加密办法 :把需要加密的信息排成一圈,显然,它们有很多种不同的读法.例如下图,可以读作: ...
- android基本控件学习-----RadioButton&CheckBox
RadioButton(单选框)和CheckBox(复选框)讲解: 一.基本用法和事件处理 (1)RadioButton单选框,就是只能选择其中的一个,我们在使用的时候需要将RadioButton放到 ...
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---22
以下为阅读<Linux命令行与shell脚本编程大全 第3版>的读书笔记,为了方便记录,特地与书的内容保持同步,特意做成一节一次随笔,特记录如下:
- 【原创】Javascript-显示系统时间
/*JS-显示系统时间*/ function showLocale(objD) { var str, colorhead, colorfoot; var yy = objD.getYear(); if ...
- android studio 按钮运行按钮后,不弹出选择运行模拟器的对话框
这个问题实际上很简单,奈何碰到的时候做了很多无用功.clean,rebulid... 特此记录,方便后来人. 解决步骤: 1.关闭AndroidStudio,并重启. 2. 把截图中的地方的勾去掉.检 ...
- Goodbye 2017 B
[题意]: 鲍勃编程一个机器人在2d迷宫中导航.迷宫有一些障碍.空单元格用'.'表示,其中障碍物用'#'表示.迷宫中有一个机器人.它的起始位置用字符“S”表示.这个位置没有任何障碍.迷宫中也有一个出口 ...
- (持续集成)win7上部署Jenkins+MSBuild+Svn+SonarQube+SonarQube Scanner for MSBuild (一)
一.Jenkins介绍 jenkins是一个广泛用于持续构建的可视化web工具,持续构建说得更直白点,就是各种项目的”自动化”编译.打包.分发部署.jenkins可以很好的支持各种语言(比如:java ...