<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Process Communications. by MARQUEZ NAVA JESUS ANAHEL</title>
      <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2023-09-23 03:45:11 UTC</pubDate>
      <lastBuildDate>2023-09-23 04:09:23 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>A process is a program running on a computer system. A process can contain executable code, data, system resources, and a separate memory space. Each process runs independently and has its own allocation of resources, such as CPU, memory, and files. Processes are the basic unit of execution in an operating system and allow multitasking.</title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717046824</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 03:54:40 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717046824</guid>
      </item>
      <item>
         <title>Processes can be in various states during their life cycle. Typical states include:Ready: The process is ready to run but has not yet been allocated CPU time.Execution: The process is being executed on the CPU.Blocked: The process is waiting for some event (e.g. input/output) and cannot run until that event completes.Terminated: The process has completed its execution.</title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717047374</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 03:56:15 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717047374</guid>
      </item>
      <item>
         <title>In programming and operating systems, communication between processes is essential for cooperation and coordination between them. Some communication techniques include:Pipes: A mechanism for communication between processes, where the output of one process is connected to the input of another.Sockets: Used for communication between processes through networks.</title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717047783</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 03:57:32 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717047783</guid>
      </item>
      <item>
         <title>Process communication over networks involves the transfer of data between processes running on separate systems. This is achieved using communication protocols, such as TCP/IP or UDP/IP, which allow processes to send and receive data over a network. Process communication via network is essential in distributed applications and client-server systems.</title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717047936</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 03:58:00 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717047936</guid>
      </item>
      <item>
         <title>Threads are smaller units of execution within a process. A process can have multiple threads, and they share the same memory space and resources as the main process. Threads allow for greater concurrency in a process, which can improve performance on multithreaded and multicore systems. However, they can also introduce concurrency problems and need to be carefully managed to avoid conflicts and race conditions.</title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717048110</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 03:58:28 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717048110</guid>
      </item>
      <item>
         <title></title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717049644</link>
         <description><![CDATA[<div>from multiprocessing import Process<br><br>def imprimir_mensaje():<br>&nbsp; &nbsp; print("Este es un proceso secundario")<br><br>if __name__ == "__main__":<br>&nbsp; &nbsp; proceso = Process(target=imprimir_mensaje)<br>&nbsp; &nbsp; proceso.start()<br>&nbsp; &nbsp; proceso.join()</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 04:02:26 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717049644</guid>
      </item>
      <item>
         <title></title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717049993</link>
         <description><![CDATA[<div>import os<br><br>pid = os.getpid()<br>estado = os.stat("/proc/" + str(pid))<br>print("Estado del proceso:", estado)</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 04:03:34 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717049993</guid>
      </item>
      <item>
         <title></title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717050809</link>
         <description><![CDATA[<div>import os<br><br>def proceso_padre(pipe):<br>&nbsp; &nbsp; mensaje = "Hola desde el proceso padre"<br>&nbsp; &nbsp; pipe.send(mensaje)<br>&nbsp; &nbsp; pipe.close()<br><br>def proceso_hijo(pipe):<br>&nbsp; &nbsp; mensaje_recibido = pipe.recv()<br>&nbsp; &nbsp; print("Mensaje recibido en el proceso hijo:", mensaje_recibido)<br>&nbsp; &nbsp; pipe.close()<br><br>if __name__ == "__main__":<br>&nbsp; &nbsp; pipe_padre, pipe_hijo = os.pipe()<br>&nbsp; &nbsp; padre = multiprocessing.Process(target=proceso_padre, args=(pipe_padre,))<br>&nbsp; &nbsp; hijo = multiprocessing.Process(target=proceso_hijo, args=(pipe_hijo,))<br>&nbsp; &nbsp; padre.start()<br>&nbsp; &nbsp; hijo.start()<br>&nbsp; &nbsp; padre.join()<br>&nbsp; &nbsp; hijo.join()<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 04:06:30 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717050809</guid>
      </item>
      <item>
         <title></title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717050885</link>
         <description><![CDATA[<div>import socket<br><br># Servidor<br>server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br>server_socket.bind(("127.0.0.1", 8080))<br>server_socket.listen(1)<br><br>print("Esperando una conexión...")<br>client_socket, client_address = server_socket.accept()<br><br>data = client_socket.recv(1024)<br>print("Datos recibidos:", data.decode())<br><br>client_socket.close()<br>server_socket.close()<br><br># Cliente<br>client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br>client_socket.connect(("127.0.0.1", 8080))<br><br>mensaje = "Hola desde el cliente"<br>client_socket.send(mensaje.encode())<br><br>client_socket.close()<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 04:06:49 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717050885</guid>
      </item>
      <item>
         <title></title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717050965</link>
         <description><![CDATA[<div>import threading<br><br>def mi_funcion():<br>&nbsp; &nbsp; for _ in range(5):<br>&nbsp; &nbsp; &nbsp; &nbsp; print("Hola desde el hilo")<br><br>thread = threading.Thread(target=mi_funcion)<br>thread.start()<br>thread.join()<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 04:07:07 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717050965</guid>
      </item>
      <item>
         <title>ok I just made the padlet so I only added this information to a single column my name is Jesus Anahel Marquez Nava</title>
         <author>jmarquez144</author>
         <link>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717051614</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-09-23 04:09:14 UTC</pubDate>
         <guid>https://padlet.com/jmarquez144/9vlivr2z5g25noid/wish/2717051614</guid>
      </item>
   </channel>
</rss>
