help with IPC + thread


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting help with IPC + thread
# 1  
Old 09-24-2012
help with IPC + thread

Actually i am thinking of some usefull application that involves both IPC and pthreads.But i am not quite sure what type of application involves both these together Smilie.
Anyways i am now working on creating a simple featured file manager that can do the following:
  1. Display file name and size.
  2. Rename any particular file.(DONT KNOW THIS Smilie)
  3. Move any file to any directory
  4. copy any file to any directory
  5. Delete any particular file
  6. Display contents of any file
But i dont exactly know how to do these things SmilieSmilie
Most importantly can anyone suggest an application that involves both IPC and pthreads?
# 2  
Old 09-24-2012
Renaming, you can do this with the rename() library function in stdio. You could also use the link and unlink calls.

Copying and moving are done by simply opening and writing to files.

What do you wish to use IPC for here?
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 09-24-2012
Quote:
Originally Posted by Corona688

Copying and moving are done by simply opening and writing to files.

What do you wish to use IPC for here?
Actually i am not planning to use IPC here.Its just that i really want to try some application that makes use of both IPC and pthreads
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Programming

Best IPC mechanism to be used

Suppose I have 5 independent process divided in two imaginay sets: set1 set2 --------------------- p1 p3 | | p2 p4 | p5 The processes inside each set communicate mutually quite often. I mean p1 and p2 communicate mutually quite often Similarly p3, p4 and p5 communicate mutually... (2 Replies)
Discussion started by: rupeshkp728
2 Replies

2. Programming

IPC Mechanisms

Hi! I wanted to know the advantages / disadvantages of different IPC mechanims such as sockets, pipes (unnamed) , shared memory & message queues. Pipes for example i hear are fast , but are difficult to debug as compared to sockets. Can you guys please name some situations where one is... (4 Replies)
Discussion started by: _korg
4 Replies

3. Solaris

errors on Netra-440: "IPC Warning: ipc: tcp_protocol: bad magic number"

I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies

4. Programming

How to cancel a thread safely from the initial thread?

how about asynchronous canceling? or with signal? if with signal whether it effects the process? my english so badly :( :( (1 Reply)
Discussion started by: alan.zhao
1 Replies

5. UNIX for Dummies Questions & Answers

Ipc

I have a parent that is passing data to child A and then child A has to process it and pass to child B. I am able to pass the data to child A but am not able to pass it to child B. Child B seems to only be receiving the last data instead of the whole data. I saw one example in a book but it uses... (1 Reply)
Discussion started by: scmay
1 Replies
Login or Register to Ask a Question