Need Homework (Multi-threading & Networking)

This is a discussion on Need Homework (Multi-threading & Networking) within the C++ Programming forums, part of the General Programming Boards category; Nope, don't need anyone to do my homework.... well outta school thank God.. but rather I need some homework. Specifically ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    74

    Post Need Homework (Multi-threading & Networking)

    Nope, don't need anyone to do my homework.... well outta school thank God.. but rather I need some homework. Specifically a good problem regarding Multi-Threading and one requiring Networking. Not sure exactly what to search for on Google and was hoping someone here had a good problem they have done in the past that I could work on to learn these two concepts... They don't have to be one single problem involving both Multi-Threading and Networking.. two separate ones would do. Hope this is appropriate to ask this kind of question here. If it isn't just delete it or close it.

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,074
    That's tough... I'm not sure if this would encompass multithreading, but perhaps make some sort of IRC client that can connect to and run on multiple servers at once.
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    74
    hmmm.. not bad... could use individual threads for each connection.. have had some experience with multi-threading in java, but no networking what so ever... would connecting to an IRC server be very hard to do? doesn't sound too difficult and would seem to be something I can work on only having 1 computer.. would connecting to a remote server be something easy to debug / test?


    Edit: Oh yeah.. think the IRC problem would have critical data sections? I wanted to make sure I would learn about Mutexs, etc.. What do they call that.. a consumer/producer problem or something? Man I wish I could remember some of my Java multi-threading homework :P Something about an elevator.. or 5 people at a table sharing a bowl or rice?!? anyone done something like that? And also, I don't suppose there is a way to practice networking programming while just using one computer is there besides an IRC type program where I would be connecting to a remote server?
    Last edited by Kurisu33; 12-22-2006 at 10:24 PM.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    I don't suppose there is a way to practice networking programming while just using one computer is there
    No, you can have one program connect with another through a specific port on the same computer. Launch telnet twice, for example. Typing in one makes the characters also appear in the other. telnet uses sockets.

    I don't know what you're using for multithreading and socket programming, but pthread and the standard UNIX socket library is my guess.

    sockets
    http://www.lowtek.com/sockets/
    http://beej.us/guide/bgnet/

    pthread
    http://www.google.ca/search?hl=en&q=...tutorial&meta=
    http://www.yolinux.com/TUTORIALS/Lin...ixThreads.html
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    A multithreaded HTTP server. The basics of the HTTP protocol are pretty easy, so that's a nice server-side networking exercise, and by making it multithreaded you have the threading part. Not sure how much thread synchronization there will be, though.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. overlapped I/O and multi threading
    By krishnampkkm in forum C++ Programming
    Replies: 2
    Last Post: 06-22-2009, 04:27 PM
  2. Multi Threading
    By beon in forum C Programming
    Replies: 5
    Last Post: 12-04-2006, 09:21 PM
  3. Replies: 6
    Last Post: 06-02-2006, 09:32 AM
  4. starting to learn multi threading
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2004, 02:44 PM
  5. Multi Threading
    By IceBall in forum C Programming
    Replies: 7
    Last Post: 07-13-2003, 04:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21