From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 22:14:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A5DF16A4CE for ; Fri, 18 Mar 2005 22:14:26 +0000 (GMT) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C310E43D2F for ; Fri, 18 Mar 2005 22:14:25 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.14] (ws14.mundomateo.com [10.0.81.14]) by mail.mundomateo.com (Postfix) with ESMTP id 6828760A7 for ; Fri, 18 Mar 2005 17:14:22 -0500 (EST) Message-ID: <423B52BA.6000605@digitalstratum.com> Date: Fri, 18 Mar 2005 17:14:18 -0500 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Best way to force a process preempt (for troubleshooting) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 22:14:26 -0000 Greetings, I'm trying to test for the possibility of interleaved data when two more more processes are writing to a pipe and more than PIPE_BUF bytes need to be written. How can I make a situation where this scenario can be caused reliably so I can make my test case, then apply my patch and make sure the changes worked? Additionally, in one case the processes are created from fork() and in another case they are threads (not sure if this makes any difference to the scheduler.) Any insight would be greatly appreciated. Thank you, Matthew