LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2013, 11:42 PM   #1
sharky84
LQ Newbie
 
Registered: Apr 2013
Posts: 6

Rep: Reputation: Disabled
Difference between drivers and libraries?


Could anyone explain me the difference? I Google'd it but didn't find anything helpful.

Thanks,
 
Old 10-09-2013, 12:39 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Google search: what is a device driver
Quote:
device driver
Web definitions
driver: (computer science) a program that determines how a computer will communicate with a peripheral device
http://wordnetweb.princeton.edu/perl/webwn?s=device driver
Google search: what is a programming library
Quote:
programming library
Web definitions
In computer science, a library is a collection of implementations of behavior, written in terms of a language, that has a well-defined interface by which the behavior is invoked. In addition, the behavior is provided for reuse by multiple independent programs. ...
http://en.wikipedia.org/wiki/Programming_library
 
Old 10-09-2013, 01:56 AM   #3
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by sharky84 View Post
Could anyone explain me the difference? I Google'd it but didn't find anything helpful.
Device Drivers:
Assume i had invented new device which starts flashing red-light when connected to usb port, if it finds virus/malware/keylogger in it. Now, that device does not start talking automatically to computer on its own, it needs some software to tell it how to communicate with *nix/win computers. that software is device driver (of that device).

Library:
Now that i am developing software (device driver) for that device, in that, i want to display virus found, date, and time of attack as report. but date can be displayed in many ways. so i write a date library, in which i code many modules on how to display dates in many ways. so whenever i want to display date, i import that module from that date library. this is what library is - a collection of programs/modules.

Hope its clear...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Pango and FreeType Libraries drichirich Linux - Kernel 0 06-11-2012 01:43 AM
difference in drivers SteveThePirate Linux - Software 3 08-14-2009 04:24 AM
old alsa drivers with new libraries epilitimus Linux - Software 3 08-09-2009 11:48 PM
development vs regular libraries, the difference? wufo Linux - Software 5 11-23-2007 02:02 AM
Lifeview 2000 ... What libraries/drivers do I need for it? nando_d9 Linux - Hardware 1 10-16-2003 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration