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 07-30-2012, 08:34 AM   #1
esgol
Member
 
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Rep: Reputation: Disabled
Question Questions about sys/queue.h : Only on LINUX? Stability? Limits? Atomicity?


I was looking for list code for my SERVER aplication and lernt about sys/queue.h

As I far i understood. Its a LINUX library offering a ready and standard Queue for programmers so they dont have to create their owns and worry for any self
I was looking for list code for my SERVER/CLIENTS aplication and lernt about sys/queue.h

Now asking more about sys/queue.h:
  1. Its available only to Linux or to windows also?
  2. Its considered the most trustworthy and flawless list someone can use as it standarized from the OS?
  3. Does it has limits in elements or its dynamical?
  4. Does it ensures internally the atomicity of operations if its accesed concurently by many threads in multithreading programming, or u still need mutexes lock/lock-free programming?

Lastly this example does not compile
line 19 says "invalid conversion form void* to foo*"
http://ideone.com/T1EID

Last edited by esgol; 07-30-2012 at 08:40 AM.
 
Old 07-31-2012, 04:05 PM   #2
alinas
Member
 
Registered: Apr 2002
Location: UK, Sywell, EGBK
Distribution: RHEL, SuSE, CentOS, Debian, Ubuntu
Posts: 60

Rep: Reputation: 20
I can't answer your question, but thought it isn't really a 'newbie' one. I reckon you might get a better response if you move this question into Software or Kernel or Networking forum...
 
Old 07-31-2012, 04:11 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by esgol View Post
Lastly this example does not compile
line 19 says "invalid conversion form void* to foo*"
http://ideone.com/T1EID
Presumably you mean line 18. malloc() returns a void pointer, which you're trying to assign to a pointer to a foo. So, you need to cast what you get from malloc() to the appropriate type.
 
Old 08-02-2012, 08:41 AM   #4
prateek.shetty
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Question answers!!

Hi Esgol,

Even I have similar questions about sys/queue.h

Just want to know if it works on Windows or if there is any alternate for it on windows. If you get to know the answers please let me know.
 
Old 08-05-2012, 06:58 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If by "works on Windows", you want to ask "is it part of the standard C library?", then no. I'm not sure what standard libraries people use for containers in C (if they choose not to write their own), though.
 
  


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
Questions about Tape Backup for Sys Admins davidstvz Linux - Newbie 36 08-16-2008 10:22 AM
Questions for sys admins bhert Linux - General 5 07-15-2007 04:13 PM
Questions regarding security/stability on a server in a datacentre profoX Linux - Security 2 06-10-2006 09:32 PM
Is a Linux sys w/o any passwd's as secure as a microsoft windows sys w/no passwd? t3gah Linux - Security 4 04-22-2005 09:01 PM
System stability/performance, Linux vs WinXP questions... hollywoodb Linux - General 1 11-15-2003 05:41 PM

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

All times are GMT -5. The time now is 12:10 AM.

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