From owner-freebsd-questions@FreeBSD.ORG Wed Mar 17 18:19:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54CF81065673 for ; Wed, 17 Mar 2010 18:19:39 +0000 (UTC) (envelope-from Herbey.Zepeda@atg.in.gov) Received: from mailhub2.isd.state.in.us (mailhub.isd.state.in.us [12.186.81.57]) by mx1.freebsd.org (Postfix) with ESMTP id 2CCDE8FC08 for ; Wed, 17 Mar 2010 18:19:38 +0000 (UTC) Received: from atgind05f-as023.atg.in.local (atgind05f-as023.atg.in.local [10.90.64.42]) by mailhub2.isd.state.in.us (Postfix) with ESMTP id A04022A80C0 for ; Wed, 17 Mar 2010 14:02:14 -0400 (EDT) x-ipfrom: 10.90.64.53 Content-Class: urn:content-classes:message Importance: normal Received: from atgind05f-as026.atg.in.local [10.90.64.53] via TLS by atgind05f-as023.atg.in.local; Wed, 17 Mar 2010 14:02:05 -0400 Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Received: from atgind05f-as026.atg.in.local ([10.90.64.53]) by atgind05f-as026.atg.in.local ([10.90.64.53]) with mapi; Wed, 17 Mar 2010 14:02:04 -0400 From: "Zepeda, Herbey" To: Date: Wed, 17 Mar 2010 14:02:03 -0400 Thread-Topic: multicore processing question Thread-Index: AcrF+ShowHLPIQmNQVyeSZ7o0EIMVwAAUqUA Message-ID: References: <10E075E52DED228526F5ECAB@utd65257.utdallas.edu> <4BA10BEA.1060303@wallnet.com> In-Reply-To: <4BA10BEA.1060303@wallnet.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: multicore processing question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 18:19:39 -0000 Hi,=20 I'm relatively new to FreeBSD and have had a hard time get to the right = information relating multicore processing. I hope someone can give me = some pointers. I have a two core processor and FreeBSD (latest stable release). Question: If I have a c program that creates child processes with fork and exec = (in a non blocking way), will the child processes be executed by FreeBSD = in parallel using the different cores without me having to do special = synchronization arrangements to my program? Will I need threads instead of processes?=20 thanks Statement of Confidentiality: The information in this message is = privileged and confidential and it is intended only for the use of the = individual or entity named above. If the reader of this message is not = the intended recipient, you are hereby notified that you are prohibited = from disseminating, distributing, or copying the information contained = in this message. If you have received this message in error, please = notify the sender immediately and destroy all copies of the original = message.