HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Please Help Me out
Operating System - HP-UX
1834679
Members
2863
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 05:25 PM
09-04-2005 05:25 PM
Please Help Me out
I Have Question which have 4 Multiple choice answers can u please help me out which is correct answer.
Q1.what describe the difference b/w block and character I/O?
a. Block I/O is used to send data to disk and character I/O is not.
b.Character I/O is used to send data to disk and Block I/O is not.
c.Block I/O goes through the buffer cache and Character I/O does not.
d.Character I/O goes through the buffer cache and Block I/O does not.
e.Character I/O is only used for tty devices.
Please tell me the answers Thankyou.
Q1.what describe the difference b/w block and character I/O?
a. Block I/O is used to send data to disk and character I/O is not.
b.Character I/O is used to send data to disk and Block I/O is not.
c.Block I/O goes through the buffer cache and Character I/O does not.
d.Character I/O goes through the buffer cache and Block I/O does not.
e.Character I/O is only used for tty devices.
Please tell me the answers Thankyou.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 05:44 PM
09-04-2005 05:44 PM
Re: Please Help Me out
I think its "a" as disks are block i/o devices.
Vibhor Kumar Agarwal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 05:54 PM
09-04-2005 05:54 PM
Re: Please Help Me out
Block I/O:
It is transferring data by caching into buffers to the disk.
Character I/O:
Direct transmission of data to disk.
Refer:
man 7 disk
http://www.informatik.uni-frankfurt.de/doc/man/hpux/disk.7.html
a) Block-special access
b) Character-special access
hth.
It is transferring data by caching into buffers to the disk.
Character I/O:
Direct transmission of data to disk.
Refer:
man 7 disk
http://www.informatik.uni-frankfurt.de/doc/man/hpux/disk.7.html
a) Block-special access
b) Character-special access
hth.
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 06:12 PM
09-04-2005 06:12 PM
Re: Please Help Me out
hi
"c.Block I/O goes through the buffer cache and Character I/O does not." also is correct!
"c.Block I/O goes through the buffer cache and Character I/O does not." also is correct!
Block-special access
Block-special device files access disks via the system's block buffer cache mechanism. Buffering is done in such a way that concurrent access through multiple opens and mounting the same physical device is correctly handled to avoid operation sequencing errors. The block buffer cache permits the system to do physical I/O operations when convenient. This means that physical write operations may occur substantially later in time than their corresponding logical write requests. This also means that physical read operations may occur substantially earlier in time than their corresponding logical read requests.
Block-special files can be read and written without regard to physical disk records. Block-special file read() and write() calls requiring disk access result in one or more BLKDEV_IOSIZE byte (typically 2048 byte) transfers between the disk and the block buffer cache. Applications using the block-special device should ensure that they do not read or write past the end of last BLKDEV_IOSIZE sized block in the device file. Because the interface is buffered, accesses past this point behave unpredictably.
Character-special access
Character-special device files access disks without buffering and support the direct transmission of data between the disk and the user's read or write buffer. Disk access through the character special file interface causes all physical I/O operations to be completed before control returns from the call. A single read or write operation up to MAXPHYS bytes (typically 64 Kbytes or 256 Kbytes) results in exactly one disk operation. Requests larger than this are broken up automatically by the operating system. Since large I/O operations via character-special files avoid block buffer cache handling and result in fewer disk operations, they are typically more efficient than similar block-special file operations.
There may be implementation-dependent restrictions on the alignment of the user buffer in memory for character special file read() and write() calls. Also, each read and write operation must begin and end on a logical block boundary and must be a whole number of logical blocks in size. The logical block size is a hardware-dependent value that can be queried with the DIOC_DESCRIBE ioctl call, which is below.
In addition to reading and writing data, the character-special file interface can used to obtain device specific information and to perform special operations. These operations are controlled through use of ioctl calls. Details related to these ioctls are contained in.
hope this helps too!
regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP