From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 14 23:32:14 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from localhost.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id A24DE16A407; Sat, 14 Oct 2006 23:32:13 +0000 (UTC) (envelope-from davidxu@freebsd.org) From: David Xu To: freebsd-hackers@freebsd.org Date: Sun, 15 Oct 2006 07:32:06 +0800 User-Agent: KMail/1.8.2 References: <200610141540.09999.ekkehard.morgenstern@onlinehome.de> In-Reply-To: <200610141540.09999.ekkehard.morgenstern@onlinehome.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610150732.06291.davidxu@freebsd.org> Cc: Ekkehard Morgenstern Subject: Re: Threading system calls (int 80h) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2006 23:32:14 -0000 On Saturday 14 October 2006 21:40, Ekkehard Morgenstern wrote: > Hi! > > Does anyone know how to use the threading system calls that are accessible > via int 80h? > > I would like to support multithreading in an assembly language program > without linking to any of the threading libraries. > > Is that possible? > > Best wishes, > Ekkehard. You are going to be unable to use libc if you create raw thread in your program, libc uses pthread APIs, if you create a raw thread, your program will crash if you use any libc function which needs pthread interface. David Xu