Sponsored Content
Operating Systems Linux Ubuntu Does Posix support kernel level threading? Post 302260079 by jayfriend on Wednesday 19th of November 2008 04:00:17 PM
Old 11-19-2008
Quote:
Originally Posted by jim mcnamara
What is a POSIX lib? libpthread.so is the POSIX threads library for a system that supports POSIX threads. How they are implemented is up to the kernel developer, not POSIX.

For Linux there is one API call: clone() that is unique to linux. It is used to exec new processes to be used mostly for threads.

Is POSIX scalable; multiprocessor support?

This does not make much sense to me:
POSIX is a standard, a set of rules - like a green traffic signal means "go". It doesn't say how big or bright the green light has to be. Just says 'must be green'

Jim,

Thank you for your quick response.

When I say POSIX, I mean POSIX library, sorry for the confusion.
Let me put it in this way..
Does Posix library(on Redhat linux) has functions to create kernel threads?
for example pthread_create() creates user thread, pls correct me if I am wrong.

Scalability: Is this library scalable (posix lib that is provided with Linux distribution )

Does it(posix lib on linux ) take the advantage of multiprocessor system?

Hope this makes sense.
 

9 More Discussions You Might Find Interesting

1. Programming

Multi threading using posix thread library

hi all, can anyone tell me some good site for the mutithreading tutorials, its application, and some code examples. -sushil (2 Replies)
Discussion started by: shushilmore
2 Replies

2. UNIX for Dummies Questions & Answers

Oot: Level 2 Unix Support? meaning

Hi all, I am sorry, I know this is not correct forum/silly question (usually this is requirement in some vacancies), but i hope someone can explain to me, what is the meaning of : SUN Tier 3 Support Tier 3 Application Installation Level 2 Solaris Level 2 AD MOM + DBA Thank you. (0 Replies)
Discussion started by: blesets
0 Replies

3. Solaris

Where/What/Howto solve warning/error msg about Kernel patch level?

required Solaris 5.10 Kernel patch 137111-03 required Solaris 5.10 Fibre Channel Device Driver patch 125184-08 I want to know about the descriptions and what the patches will do. I searched www.sun.com (patches/updates) but don't see I am looking for. (1 Reply)
Discussion started by: Y4Net
1 Replies

4. UNIX for Dummies Questions & Answers

Kernel Support

Hi, I want to learn that all the family of x86 processors are supported by kernel. I want to buy a board, which has VIA ESP10K processor and CHIPSET: VIA CN333 north bridge & VIA VT8237R south bridge Where can I find this? Thanks. (5 Replies)
Discussion started by: yildiz.a
5 Replies

5. UNIX for Dummies Questions & Answers

ACL (POSIX and NFSv4) Support over NFS shared drives on different Unix platforms

Hello, I have a question regarding ACLs and their availability across different Unix platforms via NFS share. If I have an AIX/FreeBSD/Solaris/HP-UX client that has an nfs share from a different system mounted on it, will the ACLs on the nfs share be processed properly? My guess is that as... (2 Replies)
Discussion started by: bstring
2 Replies

6. Solaris

Kernel Patch level of ABE.

Hi, Anyone able to advise on how to find the kernel patch level of an ABE? showrev and uname -a will provide kernel patch details of the running environment, but how can I run these commands against the ABE or where do these commands get their information from i.e. is the kernel patch level... (3 Replies)
Discussion started by: CiCa
3 Replies

7. Ubuntu

Phenom II support in kernel

Does anyone know at which kernel version support for Phenom II x6 first appeared? (7 Replies)
Discussion started by: Varsel
7 Replies

8. Solaris

Older OS support in Kernel zones

folks, I have a query. Can we create Kernel zone with the earlier Solaris OS? More precisely Can i create kernel zone with any different OS than that of OS in global zone. As of now in sol11U2 if we create kernel zone, there will be sol11u2 OS in kernel zone since the same is in global. But... (4 Replies)
Discussion started by: Vaishey
4 Replies

9. UNIX for Beginners Questions & Answers

Does UNIX support multi-Threading ?

Not just background process running ... but im looking if unix has any multi-threading concept like in Java, C# ... if not present, can you pls share the nearest feature in unix that is close to multi-threaded concept (3 Replies)
Discussion started by: i4ismail
3 Replies
VFS_AIO_PTHREAD(8)					    System Administration tools 					VFS_AIO_PTHREAD(8)

NAME
vfs_aio_pthread - implement async I/O in Samba vfs using a pthread pool SYNOPSIS
vfs objects = aio_pthread DESCRIPTION
This VFS module is part of the samba(7) suite. The aio_pthread VFS module enables asynchronous I/O for Samba on platforms which have the pthreads API available, without using the Posix AIO interface. Posix AIO can suffer from severe limitations. For example, on some Linux versions the real-time signals that it uses are broken under heavy load. Other systems only allow AIO when special kernel modules are loaded or only allow a certain system-wide amount of async requests being scheduled. Systems based on glibc (most Linux systems) only allow a single outstanding request per file descriptor which essentially makes Posix AIO useless on systems using the glibc implementation. To work around all these limitations, the aio_pthread module was written. It uses a pthread pool instead of the internal Posix AIO interface to allow read and write calls to be process asynchronously. A pthread pool is created which expands dynamically by creating new threads as work is given to it to a maximum of 100 threads per smbd process. To change this limit see the "aio num threads" parameter below. New threads are not created if idle threads are available when a new read or write request is received, the new work is given to an existing idle thread. Threads terminate themselves if idle for one second. Note that the smb.conf parameters aio read size and aio write size must also be set appropriately for this module to be active. This module MUST be listed last in any module stack as the Samba VFS pread/pwrite interface is not thread-safe. This module makes direct pread and pwrite system calls and does NOT call the Samba VFS pread and pwrite interfaces. EXAMPLES
Straight forward use: [cooldata] path = /data/ice aio read size = 1024 aio write size = 1024 vfs objects = aio_pthread OPTIONS
aio_pthread:aio num threads = INTEGER Limit the maximum number of threads per smbd that will be created in the thread pool to service IO requests. By default this is set to 100. VERSION
This man page is correct for version 4.0 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. Samba 4.0 06/17/2014 VFS_AIO_PTHREAD(8)
All times are GMT -4. The time now is 04:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy