摘要:
Data is received from a memory, which includes bitmap images, for output on an output device. The images may be stored in compressed or uncompressed form. The operating system, application or generic graphics environment program interface, queries the printer driver for the types of image compression formats supported by the printer. If the image is available in a compatible compressed format, that compressed image is read from memory. Alternatively or in addition, the best possible compression format supported by the printer is selected from the formats available in the printer driver. The image is then loaded in a printer compatible compression format or compressed using the selected format. The image is spooled in the selected compression format. The image file may be spooled as a raw file or metafile depending on the embodiment used. When needed by the printer or video display, the spool file containing the compressed image is accessed from storage, and the compressed image is sent directly to the printer or video display without allocating memory for decompressing the bitmap image or decompressing the image.
摘要:
Illustrative embodiments provide a computer implemented method, a data processing system and a computer program product for lock contention reduction. In one illustrative embodiment, the computer implemented method provides a lock to an active thread, increments a lock counter, receives a request to de-schedule the active thread, and determines whether the lock is held by the active thread. The computer implemented method, responsive to a determination that the lock is held by the active thread, adds a first pre-determined amount to a time slice of the active thread.
摘要:
A method and apparatus in a data processing system for processing a print job. A call is received from an application to print the print job to a selected printer, wherein the print job includes a request to use a hardware service. A print preview of the print job prior to printing the print job is provided. Responsive to receiving an indication that the print job is to be printed after providing the print preview, the print job is sent to a device driver for the selected printer to print the print job. A determination is made as to whether the selected printer supports the hardware service. Responsive to a determination that the hardware service is unsupported by the selected printer, the hardware service is provided using a software simulation.
摘要:
The system, method, and program of the invention enables a Web server to ensure that any prerequisite resource is served before, or in conjunction with, a requested resource. Upon receipt of a request for a resource, e.g., a page, the Web server determines if the requested resource requires a prerequisite resource. If it does, a different resource is sent that has been modified to include the prerequisite resource. In a further embodiment, the Web server keeps track of each client's request for a prerequisite resource in order to determine whether the prerequisite resource had been previously requested when a resource is requested that requires the prerequisite resource. The different resource is sent if the resource requires a prerequisite resource and if it is determined that the previous request by the requester for the prerequisite resource has not been made within a configurable amount of time or within a predetermined number of hits.
摘要:
Illustrative embodiments provide a computer implemented method, a data processing system and a computer program product for lock contention reduction. In one illustrative embodiment, the computer implemented method provides a lock to an active thread, increments a lock counter, receives a request to de-schedule the active thread, and determines whether the lock is held by the active thread. The computer implemented method, responsive to a determination that the lock is held by the active thread, adds a first pre-determined amount to a time slice of the active thread.
摘要:
A method, system and computer program product in a data processing system for printing a disjoint web object and content of a web page is provided. Responsive to presenting the web page by the browser, an embedded tag is presented as the disjoint web object. The disjoint web object is then printed based on the embedded tag, wherein content relative to the disjoint web object is printed along with content of the web page.
摘要:
Data is received from a memory, which includes bitmap images, for output on an output device. The images may be stored in compressed or uncompressed form. The operating system, application or generic graphics environment program interface, queries the printer driver for the types of image compression formats supported by the printer. If the image is available in a compatible compressed format, that compressed image is read from memory. Alternatively or in addition, the best possible compression format supported by the printer is selected from the formats available in the printer driver. The image is then loaded in a printer compatible compression format or compressed using the selected format. The image is spooled in the selected compression format. The image file may be spooled as a raw file or metafile depending on the embodiment used. When needed by the printer or video display, the spool file containing the compressed image is accessed from storage, and the compressed image is sent directly to the printer or video display without allocating memory for decompressing the bitmap image or decompressing the image.
摘要:
A method and apparatus in a data processing system for generating a metadata stream. Calls are received calls from an application, wherein the calls are received calls. The current application attributes in the received calls are tracked. The received calls are monitored for a new page call. When a new page call is identified in the received calls, the new page call is placed within the metadata stream to identify a new page in the metadata stream. Current application attributes are placed in the metadata stream within the new page identified by the new page call, wherein the new page within the metadata stream may be outputted/printed or reprocessed using the current application attributes located within new page.
摘要:
A method and apparatus in a data processing system for generating a metadata stream. An attribute call is received to set an attribute. In response, a first database is queried to determine whether the attribute call is present in the first database. The first database is updated in response to the attribute call being absent in the first database. In response to receiving a primitive call, an attribute call associated with the primitive is retrieved from the first database. A determination is made as to whether the attribute call associated with the primitive is present in a second database. The second database is; updated to include the attribute call associated with the primitive call in response to the attribute call associated with the primitive call being absent in the second database. The attribute call associated with the primitive call and the primitive call is placed in the metadata stream.
摘要:
A method and apparatus in a data processing system for generating a metadata stream. A request is received to render an object. A determination is made as to whether a device hint associated with the object is present. The object is placed in the metadata stream. The device hint is placed in the metadata stream, responsive to the device hint associated with the object being present. Then the device can take advantage of the hints without requiring it to preprocess the set of objects.