Signature
Sorry, I suck at not editing my posts.
-
jasonc
How can I use netreceive (TCP) when the remote host is listening for connections? I.e. connect to remote host and receive data, instead of accept incoming connections and receive data.
Thanks,
J -
jasonc
@adrjork said:
Hi guys,
just a question: when you use [netsend]+[netreceive] (or [pd~]) on the same computer - but in two separate instances of PD - does automatically PD optimize the dual-instance for a dual-core processor, or I have to set something?Your operating system will manage determining which core a given thread runs on for you. It may even decide to run them both on the same core, if the other cores are busy with other things. Sometimes it may even decide to switch threads from one core to another while the thread is running.
E.g. assuming Maelstorm is correct about pd~ (I'm not familiar with it), it actually runs on a separate thread, not a separate core. It may or may not run on a separate core if that's what the system decides makes the most sense.
Also keep in mind that PD in GUI mode has other things going on, and is already running multiple threads. When multiple instances of PD are running your OS will distribute PD's various calculation and GUI threads, as well as the threads of other processes running on your system, among cores as it sees fit. Your level of explicit control over this decision is very small.
You can set affinity masks for entire processes through the task manager in Windows, not sure if/how you can do it in OSX/Linux, but you are unlikely to make a better decision than the OS here.
You are better to not ask questions like that unless you observe that PD is running too slowly for your requirements and have determined already that spreading processing out on different cores will solve your bottleneck.
-
-
jasonc
Thanks that's a good idea. I have to add support in the server for it, but it seems like the easiest option (I actually only need to send the port, since the server can tell which IP the connection came from, which makes the PD side a lot simpler).