Sponsored Content
Top Forums Programming Multithreading in reading file Post 302576082 by Corona688 on Wednesday 23rd of November 2011 02:48:35 PM
Old 11-23-2011
For such simple processing as this, a single-threaded program is going to be far faster than your disk by far.

You can only process a file as fast as the disk can read it no matter how many threads you have. Files don't have a multithreading "go-faster" mode.

What exactly are you trying to do? What do you mean by "merge"? Describe what you're doing in more detail, we may be able to help track down the slow step.

P.S: Is this really what your XML looks like, or did you pretty it up for posting?
 

9 More Discussions You Might Find Interesting

1. Programming

Multithreading in Pro*C

:confused: Hi! I have created a Multhreaded Application in Pro*C (using pthreads) with about 5 Threads running simultaneously. The Application is basically to Update a Centralized Table in Oracle, which updates different rows in the Table (Each Thread updates different rows!). The... (16 Replies)
Discussion started by: shaik786
16 Replies

2. Programming

multithreading on OSX

Hi all, I have a query about multithreading. What I would like to do is, at the start of my main update() function, start a couple of threads in parallel, once they are all complete carry on with my main update function. void update() { thread1->update(); // fluid solver ... (3 Replies)
Discussion started by: memoid
3 Replies

3. UNIX for Advanced & Expert Users

multithreading in UNIX

Hi, Can you please give me a suitable reference to learn multithreading programming in C in UNIX? Thanks (3 Replies)
Discussion started by: naan
3 Replies

4. Shell Programming and Scripting

Multithreading program

Hi I need to insert 1million records into MySQL database, but it is taking lot of time as there is no bulk insert support. I want to spawn 10 processes which will insert 100k records each parallely. Can somebody help me with a example program to execute this task through shell scripting. (5 Replies)
Discussion started by: sach_roger
5 Replies

5. Programming

MultiThreading using Pthreads

Situation: i have multiple pthread_create calls like this: pthread_create(...., ThreadFunc1,.....); pthread_create(...., ThreadFunc2,.....); . . which i am using to create multiple threads.All the "ThreadFunc<i>" functions are actually calling same function "Receive" of a class using same... (3 Replies)
Discussion started by: Sastra
3 Replies

6. IP Networking

how to do udp broadcast with multithreading

hello to all i want to use multithreading to my UDP broadcast server client program. will anyone help me by proving C code. i am working in fedora. also my requirement is POSIX compliance.please help me..... (0 Replies)
Discussion started by: moti12
0 Replies

7. Programming

how to do udp broadcast with multithreading

hello to all i want to use multithreading to my UDP broadcast server client program. will anyone help me by proving C code. i am working in fedora. also my requirement is POSIX compliance.please help me..... (6 Replies)
Discussion started by: moti12
6 Replies

8. What is on Your Mind?

Alarm interrupt and multithreading

Hi Friends any know how became a friend in this Android Programming Language (0 Replies)
Discussion started by: ljarun
0 Replies

9. Programming

Help with multithreading

I take this question of the The Linux Programming Interface: A Linux and Unix System Programming page 652 exercise 30.1 I want someone to explain the under line statement because it sounds complex to me couldn't understand anything 30-1 Modify the program (thread_incr.c) so that each loop in... (3 Replies)
Discussion started by: fwrlfo
3 Replies
fddisk(8)						      System Manager's Manual							 fddisk(8)

NAME
fddisk - FDI disk maintenance utility SYNOPSIS
/sbin/fddisk options special OPTIONS
Unless this option is specified, an attempt to format or to install a file system fails in two cases. The first failure occurs when the device has been opened since the media was inserted. The second failure occurs if the device is currently opened by another process. For- mats the media to the density appropriate for that media. Copies a hex dump of sector number PSN to stdout. Uses the interleave factor nnn for formatting. If specified, ccc indicates an additional intercylinder interleave. Copies a packed-C hex dump of the entire disk to stdout. Specifies silent mode. This option blocks informational messages from appearing on stderr. Reads the entire media. The command fails if the utility finds a bad sector. Waits for media to be inserted into the drive if none is present. Waits for new media to be inserted into the drive if none is present or if the current media has been opened since it was last inserted. Reads the disk and reports on the format of the disk. OPERANDS
Specifies an unmounted, raw device pathname. This device must be an FDI interface (fd). DESCRIPTION
The fddisk utility, an FDI (integrated Floppy Disk Interface) disk maintenance program, can format a floppy disk, scan a floppy disk for bad blocks, and read and write selected blocks. It can be used in shell scripts for checking the status of floppy disks. Such status checks include checking for or waiting for the presence of media, and checking for or waiting for the user to change the media. RESTRICTIONS
The fddisk utility has the following restrictions: You must have read/write access to the device. The device must not be mounted. The program can only be used with a 3.5-inch floppy disk in the RX26 drive. In some cases, it might not be possible to format a floppy disk at a higher density than it is already formatted. If this situation occurs, the floppy disk must be bulk erased before it can be reformatted at a higher density. EXAMPLES
This example formats a floppy disk in drive zero: # /sbin/fddisk -fmt /dev/rdisk/floppy0a This example formats a floppy disk in drive zero when the disk has been read or written since it was inserted into the drive: # /sbin/fddisk -fmt -f /dev/rdisk/floppy0a SEE ALSO
Commands: mount(8), restore(8), uerf(8) Files: fd(7) fddisk(8)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy