Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

single thread access

 
priyanaka jaiswal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


Can single thread can access multiple process?


thanks in advance
 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Priyanka, if i have understood your question correctly you are asking about inter process communication.

Every process has its own address space, and threads inside it can share some data that is where we do synchronization, but two process doesn't share anything in common.
If you have to do it, you need OS level support like network, files, pipes, queues, RPC calls etc. Again this is not thread to thread communication.
 
priyanaka jaiswal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Harshvardhan
 
priyanaka jaiswal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Harshvardhan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic