LinuxQuestions.org
Review your favorite Linux distribution.
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-09-2013, 12:42 AM   #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, 01:39 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
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, 02:56 AM   #3
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:43 AM
difference in drivers SteveThePirate Linux - Software 3 08-14-2009 05:24 AM
old alsa drivers with new libraries epilitimus Linux - Software 3 08-10-2009 12:48 AM
development vs regular libraries, the difference? wufo Linux - Software 5 11-23-2007 03:02 AM
Lifeview 2000 ... What libraries/drivers do I need for it? nando_d9 Linux - Hardware 1 10-16-2003 09:58 AM


All times are GMT -5. The time now is 04:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration