[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Max speed of parllel port

Posted on 2001-06-24
2
Medium Priority
?
252 Views
Last Modified: 2008-03-17
Whats the maximum speed for parllel port communication
I wrote a program something like this ( algoriuthm below)

Record the time
Write to parllel port 5000000 times 12
Record time

The program takes 11sec. Is that some what slow. I am getting the speed only as around 1Mhz. Also i am implementing the above using c. Is it the c overheads like increment of counter in for loop and stuff thats making it slow?
Should i switch to assembly for faster speed?
0
Comment
Question by:harisnshaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 400 total points
ID: 6222770
That's about the limit, 1M Byte/sec.  In fact, that is better than most.  Many PCs won't handshake data at the serial port much faster than 500 KB/s or so...

Going to assembly will not help much if at all because most of the delay is in the overhead for the parallel port and the slowness of the legacy I/O port hardware that implements the parallel port.  If you were to watch your code on a hardware analyzer, you'd see that 99% of the time is spent waiting on the hardware.  So you can optimize your code all day and at best improve the 1% to 0.5%.  In other words, it's a "drop in the ocean".
0
 
LVL 32

Expert Comment

by:jhance
ID: 6224201
Hello???
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question