In C, how the parent process read from multiple pipes then merge and sort? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Improve INSERT-per-second performance of SQLite?How to read a file into a variable in shell?Program that read file and send it to parent process with pipeparent process not reading the data from named pipe completelyC - Reading from two pipes(parent from two child processes) simultaneously?Piping From Child To Parent ProcessHow can the child process read stdout from the pipe and the parent process write stdin to the pipe?Read data from multiple pipesChild process not reading correct values from pipeContinuous writing and reading using pipes with multiple processes

Could a cockatrice have parasitic embryos?

Is Bran literally the world's memory?

How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?

Will I lose my paid in full property

Bright yellow or light yellow?

What is /etc/mtab in Linux?

What does the black goddess statue do and what is it?

Does Prince Arnaud cause someone holding the Princess to lose?

`FindRoot [ ]`::jsing: Encountered a singular Jacobian at a point...WHY

Why do people think Winterfell crypts is the safest place for women, children & old people?

What were wait-states, and why was it only an issue for PCs?

How to keep bees out of canned beverages?

Marquee sign letters

What's parked in Mil Moscow helicopter plant?

Is there a possibility to generate a list dynamically in Latex?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

Suing a Police Officer Instead of the Police Department

What is the ongoing value of the Kanban board to the developers as opposed to management

France's Public Holidays' Puzzle

Putting Ant-Man on house arrest

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Is it accepted to use working hours to read general interest books?

Where/What are Arya's scars from?

Processing ADC conversion result: DMA vs Processor Registers



In C, how the parent process read from multiple pipes then merge and sort?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Improve INSERT-per-second performance of SQLite?How to read a file into a variable in shell?Program that read file and send it to parent process with pipeparent process not reading the data from named pipe completelyC - Reading from two pipes(parent from two child processes) simultaneously?Piping From Child To Parent ProcessHow can the child process read stdout from the pipe and the parent process write stdin to the pipe?Read data from multiple pipesChild process not reading correct values from pipeContinuous writing and reading using pipes with multiple processes



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















For example, the parent process should read from two pipes with value: [1,4,5], [2, 3,6]. How can the parent process read 1,2 first and print 1; then compare 4 and 2 and print 2;... and the result should be 1,2,3,4,5,6










share|improve this question






















  • Where's the difficulty, seems that you've figured it all out? Using popen perhaps? descriptors and fdopen?

    – Antti Haapala
    Mar 9 at 7:40











  • Can you narrow this down to a particular part of the problem that you need help with?

    – immibis
    Mar 9 at 10:42

















0















For example, the parent process should read from two pipes with value: [1,4,5], [2, 3,6]. How can the parent process read 1,2 first and print 1; then compare 4 and 2 and print 2;... and the result should be 1,2,3,4,5,6










share|improve this question






















  • Where's the difficulty, seems that you've figured it all out? Using popen perhaps? descriptors and fdopen?

    – Antti Haapala
    Mar 9 at 7:40











  • Can you narrow this down to a particular part of the problem that you need help with?

    – immibis
    Mar 9 at 10:42













0












0








0








For example, the parent process should read from two pipes with value: [1,4,5], [2, 3,6]. How can the parent process read 1,2 first and print 1; then compare 4 and 2 and print 2;... and the result should be 1,2,3,4,5,6










share|improve this question














For example, the parent process should read from two pipes with value: [1,4,5], [2, 3,6]. How can the parent process read 1,2 first and print 1; then compare 4 and 2 and print 2;... and the result should be 1,2,3,4,5,6







c unix






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 9 at 4:41









JosephinJosephin

11




11












  • Where's the difficulty, seems that you've figured it all out? Using popen perhaps? descriptors and fdopen?

    – Antti Haapala
    Mar 9 at 7:40











  • Can you narrow this down to a particular part of the problem that you need help with?

    – immibis
    Mar 9 at 10:42

















  • Where's the difficulty, seems that you've figured it all out? Using popen perhaps? descriptors and fdopen?

    – Antti Haapala
    Mar 9 at 7:40











  • Can you narrow this down to a particular part of the problem that you need help with?

    – immibis
    Mar 9 at 10:42
















Where's the difficulty, seems that you've figured it all out? Using popen perhaps? descriptors and fdopen?

– Antti Haapala
Mar 9 at 7:40





Where's the difficulty, seems that you've figured it all out? Using popen perhaps? descriptors and fdopen?

– Antti Haapala
Mar 9 at 7:40













Can you narrow this down to a particular part of the problem that you need help with?

– immibis
Mar 9 at 10:42





Can you narrow this down to a particular part of the problem that you need help with?

– immibis
Mar 9 at 10:42












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074042%2fin-c-how-the-parent-process-read-from-multiple-pipes-then-merge-and-sort%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074042%2fin-c-how-the-parent-process-read-from-multiple-pipes-then-merge-and-sort%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved