What would happen in these circumstances?
Say I have 50 clients all calling in on different fixed ports at random to 50 indexed winsocks (1 to 50) to retrieve info from a common database.
The server has one common Sub DataArrival(Index as Interger, ByVal bytesTotal As Long), buffers are also indexed so only one client data is ever processed at one time.
You always know which client it is by the index.
With a single processor I believe you never get the situation where, when the data arrival fires, it confuses data between clients. (I have exhaustively tested this and it seems to be OK)
I would have thought a single processor can only ever be at one point in the machine code at one instant so if 2 clients call at exactly the same time, one Winsock buffer has to wait until the other is finished before Dataarrival can be processed.
But is it theoretically possible that with multi core processors two or more winsocks might fire together creating a mix of the data or one or both being lost - or does Windows take care of that with VB6 type code?
When I view processor CPU usage history on my i7 I see activity on all 8 cores on a busy vb6 app.
I realise that this would be difficult to test because the likelyhood of exact occurrences at such a gigabyte clock rates is improbably anyway.
Say I have 50 clients all calling in on different fixed ports at random to 50 indexed winsocks (1 to 50) to retrieve info from a common database.
The server has one common Sub DataArrival(Index as Interger, ByVal bytesTotal As Long), buffers are also indexed so only one client data is ever processed at one time.
You always know which client it is by the index.
With a single processor I believe you never get the situation where, when the data arrival fires, it confuses data between clients. (I have exhaustively tested this and it seems to be OK)
I would have thought a single processor can only ever be at one point in the machine code at one instant so if 2 clients call at exactly the same time, one Winsock buffer has to wait until the other is finished before Dataarrival can be processed.
But is it theoretically possible that with multi core processors two or more winsocks might fire together creating a mix of the data or one or both being lost - or does Windows take care of that with VB6 type code?
When I view processor CPU usage history on my i7 I see activity on all 8 cores on a busy vb6 app.
I realise that this would be difficult to test because the likelyhood of exact occurrences at such a gigabyte clock rates is improbably anyway.